diff --git a/Changelog.md b/Changelog.md index 1919b98..c55943d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,7 @@ - added new setting to start with maximized window - long file names work now even if not enabled by the OS - fixed history being written even when history file wasn't created prior +- libmpv updated to shinchiro 2019-08-31 ### 5.3 diff --git a/mpv.net/WinForms/MainForm.cs b/mpv.net/WinForms/MainForm.cs index 049bd9b..b4ecc39 100644 --- a/mpv.net/WinForms/MainForm.cs +++ b/mpv.net/WinForms/MainForm.cs @@ -387,10 +387,10 @@ namespace mpvnet else Text = "mpv.net " + Application.ProductVersion; - double duration = mp.get_property_number("duration"); ProgressTimer.Interval = (int)(mp.Duration.TotalMilliseconds / 99); if (ProgressTimer.Interval < 100) ProgressTimer.Interval = 100; if (ProgressTimer.Interval > 999) ProgressTimer.Interval = 999; + UpdateProgressBar(); })); if (RecentFiles.Contains(path)) RecentFiles.Remove(path); @@ -513,7 +513,7 @@ namespace mpvnet void UpdateProgressBar() { - if (mp.TaskbarProgress) + if (mp.TaskbarProgress && Taskbar != null) Taskbar.SetValue(mp.get_property_number("time-pos"), mp.Duration.TotalSeconds); }