Commit 740ab95d authored by Erwan Tulou's avatar Erwan Tulou

skins2: fix race condition (if multiple vouts)

Close must also be serialized (one single global lock/wait).
parent 890ea92a
...@@ -362,7 +362,9 @@ static void WindowClose( vlc_object_t *p_this ) ...@@ -362,7 +362,9 @@ static void WindowClose( vlc_object_t *p_this )
vout_window_t *pWnd = (vout_window_t *)p_this; vout_window_t *pWnd = (vout_window_t *)p_this;
intf_thread_t *pIntf = (intf_thread_t *)pWnd->sys; intf_thread_t *pIntf = (intf_thread_t *)pWnd->sys;
vlc_mutex_lock( &serializer );
VoutManager::releaseWindow( pIntf, pWnd ); VoutManager::releaseWindow( pIntf, pWnd );
vlc_mutex_unlock( &serializer );
vlc_object_release( pIntf ); vlc_object_release( pIntf );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment