mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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:
parent
c0561fb916
commit
bfe2447a3b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue