From fbc8b1225e6834aedccbfdf29532d888c17a6ae2 Mon Sep 17 00:00:00 2001 From: bartekmotyl <29923773+bartekmotyl@users.noreply.github.com> Date: Sun, 10 Apr 2022 13:04:21 +0200 Subject: [PATCH] fixing: popup preview area is freeze unexpectedly #47 --- src/SimpleVideoCutter/MainForm.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SimpleVideoCutter/MainForm.cs b/src/SimpleVideoCutter/MainForm.cs index 0a00c8e..c73c29d 100644 --- a/src/SimpleVideoCutter/MainForm.cs +++ b/src/SimpleVideoCutter/MainForm.cs @@ -846,9 +846,8 @@ private void timerHoverPositionChanged_Tick(object sender, EventArgs e) videoViewHover.Location = new Point( posX, videoCutterTimeline1.Location.Y - videoViewHover.Height - 5); - - videoViewHover.MediaPlayer.Position = posFloat; - + // see popup preview area is freeze unexpectedly #47 + ThreadPool.QueueUserWorkItem((state) => videoViewHover.MediaPlayer.Position = posFloat); } else {