diff --git a/Changelog.md b/Changelog.md index d1a66ec..cb6c266 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,9 @@ +### + +- bug fix for single-instance not working with unicode filenames +- bug fix for logo not shown +- bug fix osd-visibility.js script causing memory leak + ### 5.1 - 'Tools > Execute mpv command' was replaced with [mpv-repl](https://github.com/rossy/mpv-repl) diff --git a/img/Terminal.png b/img/Terminal.png index a2522e8..96836d6 100644 Binary files a/img/Terminal.png and b/img/Terminal.png differ diff --git a/mpv.net/Native/Native.cs b/mpv.net/Native/Native.cs index 19d2717..fb2ffaa 100644 --- a/mpv.net/Native/Native.cs +++ b/mpv.net/Native/Native.cs @@ -88,7 +88,7 @@ namespace mpvnet { public IntPtr dwData; public int cbData; - [MarshalAs(UnmanagedType.LPStr)] + [MarshalAs(UnmanagedType.LPTStr)] public string lpData; } } diff --git a/mpv.net/WinForms/MainForm.cs b/mpv.net/WinForms/MainForm.cs index cafef38..0eeac4d 100644 --- a/mpv.net/WinForms/MainForm.cs +++ b/mpv.net/WinForms/MainForm.cs @@ -83,6 +83,7 @@ namespace mpvnet if (mp.GPUAPI != "vulkan") mp.VideoSizeAutoResetEvent.WaitOne(App.StartThreshold); if (Height < FontHeight * 4) SetFormPosAndSize(); + if (mp.get_property_int("playlist-count") == 0) mp.ShowLogo(); } catch (Exception ex) { diff --git a/mpv.net/mpv/mp.cs b/mpv.net/mpv/mp.cs index 36b166e..4fb89d7 100644 --- a/mpv.net/mpv/mp.cs +++ b/mpv.net/mpv/mp.cs @@ -110,7 +110,6 @@ namespace mpvnet mpv_initialize(Handle); Initialized?.Invoke(); - ShowLogo(); LoadMpvScripts(); if (GPUAPI != "vulkan") ProcessCommandLine(); }