d3d11videosink: only destroy loop if external_win_id is false
authorAaron Boxer <aaron.boxer@collabora.com>
Wed, 13 Nov 2019 01:54:46 +0000 (19:54 -0600)
committerAaron Boxer <aaron.boxer@collabora.com>
Wed, 13 Nov 2019 01:54:46 +0000 (19:54 -0600)
Loop was created with this condition, so it should also be
destroyed under the same condition

sys/d3d11/gstd3d11window.c

index 5a784ff..89d0a26 100644 (file)
@@ -828,7 +828,7 @@ gst_d3d11_window_prepare (GstD3D11Window * window, guint width, guint height,
   }
   g_mutex_unlock (&window->lock);
 
-  if (!window->created) {
+  if (!window->external_win_id && !window->created) {
     g_main_loop_quit (window->loop);
     g_thread_join (window->thread);
     g_main_loop_unref (window->loop);