d3d11videosink: only destroy loop if external_win_id is false

Loop was created with this condition, so it should also be
destroyed under the same condition
This commit is contained in:
Aaron Boxer 2019-11-12 19:54:46 -06:00
parent c0561fb916
commit bfe2447a3b

View 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);