From c3f2b22ff569d979184ec14ec7bf63337fde1ab7 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sat, 1 Jun 2019 15:15:41 +0200 Subject: [PATCH] - --- Changelog.md | 5 +++++ mpv.net/Properties/AssemblyInfo.cs | 4 ++-- mpv.net/mpv/mp.cs | 9 ++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index d523306..5263156 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,7 +1,12 @@ ### +### 4.1 + - drag & drop support for subtitles was added - libmpv was updated +- command line support for stdin and URLs was added +- there was a crash happening when the player is + minimized in the taskbar ### 4.0 diff --git a/mpv.net/Properties/AssemblyInfo.cs b/mpv.net/Properties/AssemblyInfo.cs index aa6fa15..29b1459 100644 --- a/mpv.net/Properties/AssemblyInfo.cs +++ b/mpv.net/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.0.0.0")] -[assembly: AssemblyFileVersion("4.0.0.0")] +[assembly: AssemblyVersion("4.1.0.0")] +[assembly: AssemblyFileVersion("4.1.0.0")] diff --git a/mpv.net/mpv/mp.cs b/mpv.net/mpv/mp.cs index b3c0b21..72af4b4 100644 --- a/mpv.net/mpv/mp.cs +++ b/mpv.net/mpv/mp.cs @@ -537,8 +537,14 @@ namespace mpvnet List files = new List(); foreach (string i in args) - if (!i.StartsWith("--") && File.Exists(i)) + { + if (!i.StartsWith("--") && File.Exists(i) || i == "-" || i.StartsWith("http")) + { files.Add(i); + if (i.StartsWith("http")) + RegistryHelp.SetObject("HKCU\\Software\\" + Application.ProductName, "LastURL", i); + } + } mp.LoadFiles(files.ToArray()); @@ -670,6 +676,7 @@ namespace mpvnet { if (MainForm.Instance is null) return; Rectangle cr = MainForm.Instance.ClientRectangle; + if (cr.Width == 0 || cr.Height == 0) return; using (Bitmap b = new Bitmap(cr.Width, cr.Height)) {