This commit is contained in:
Frank Skare
2019-07-12 23:53:43 +02:00
parent e0111b6f12
commit 83658aa476
8 changed files with 67 additions and 25 deletions

View File

@@ -314,10 +314,11 @@ namespace mpvnet
if (VideoSize != vidSize && vidSize != Size.Empty)
{
VideoSize = vidSize;
VideoSizeAutoResetEvent.Set();
VideoSizeChanged?.Invoke();
}
VideoSizeAutoResetEvent.Set();
Task.Run(new Action(() => ReadMetaData()));
break;
case mpv_event_id.MPV_EVENT_CHAPTER_CHANGE:
@@ -515,6 +516,8 @@ namespace mpvnet
Load(files.ToArray(), App.ProcessInstance != "queue", Control.ModifierKeys.HasFlag(Keys.Control));
if (files.Count == 0) VideoSizeAutoResetEvent.Set();
foreach (string i in args)
{
if (i.StartsWith("--"))
@@ -538,7 +541,7 @@ namespace mpvnet
}
}
static DateTime LastLoad;
public static DateTime LastLoad;
public static void Load(string[] files, bool loadFolder, bool append)
{