From 327a097bcf3f6905c32e190bf1ddc0a6ff5fc425 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Fri, 4 Oct 2019 17:36:14 +0200 Subject: [PATCH] there was a sound when closed from taskbar due to a exception --- Changelog.md | 7 ++++++- mpv.net/Misc/Command.cs | 5 +++++ mpv.net/Resources/mpvConf.txt | 5 ++++- mpv.net/WinForms/MainForm.cs | 2 -- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Changelog.md b/Changelog.md index f5af873..079dd90 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,9 +3,14 @@ - new: the [scripting wiki page](https://github.com/stax76/mpv.net/wiki/Scripting#powershell) was improved - new: Toggle Shuffle has been added to the menu defaults - new: for URLs the media title is shown in the title bar and the info command - instead of displaying the URL + instead of displaying the URL, mpv.conf defaults were changed to use + [protocol.https] osd-playing-msg = '${media-title}' - fix: on the very first start volume was set to 0 and mute was set to yes, now reasonable defaults are set, volume = 70, mute = no +- fix: there was a issue fixed with the URL clipboard monitoring +- fix: there was a sound when closed from taskbar due to a exception +- update: libmpv shinchiro 2019-09-22 +- update: youtube-dl 2019-10-01 ### 5.4.1.1 diff --git a/mpv.net/Misc/Command.cs b/mpv.net/Misc/Command.cs index 48f5cd6..c66dd6e 100644 --- a/mpv.net/Misc/Command.cs +++ b/mpv.net/Misc/Command.cs @@ -38,6 +38,11 @@ namespace mpvnet case "add-files-to-playlist": OpenFiles("append"); break; // deprecated 2019 default: Msg.ShowError($"No command '{id}' found."); break; } + + MainForm.Instance.BeginInvoke(new Action(() => { + Message m = new Message() { Msg = 0x0202 }; // WM_LBUTTONUP + Native.SendMessage(MainForm.Instance.Handle, m.Msg, m.WParam, m.LParam); + })); } public static void InvokeOnMainThread(Action action) => MainForm.Instance.Invoke(action); diff --git a/mpv.net/Resources/mpvConf.txt b/mpv.net/Resources/mpvConf.txt index dda0372..d6a1b23 100644 --- a/mpv.net/Resources/mpvConf.txt +++ b/mpv.net/Resources/mpvConf.txt @@ -9,4 +9,7 @@ screenshot-directory = '~~desktop/' cscale = spline36 dscale = spline36 scale = spline36 -hwdec = yes \ No newline at end of file +hwdec = yes + +[protocol.https] +osd-playing-msg = '${media-title}' \ No newline at end of file diff --git a/mpv.net/WinForms/MainForm.cs b/mpv.net/WinForms/MainForm.cs index 39594db..99c6da4 100644 --- a/mpv.net/WinForms/MainForm.cs +++ b/mpv.net/WinForms/MainForm.cs @@ -581,8 +581,6 @@ namespace mpvnet { base.OnActivated(e); CheckClipboardForURL(); - Message m = new Message() { Msg = 0x0202 }; // WM_LBUTTONUP - Native.SendMessage(Handle, m.Msg, m.WParam, m.LParam); } protected override void OnResize(EventArgs e)