Commit ed984cf7 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Derk-Jan Hartman

minimal_macosx: make sure theWindow object exists before sending it an event.

(cherry picked from commit bf355d95)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent 57e78056
......@@ -233,7 +233,8 @@ int aglManage( vout_thread_t * p_vout )
aglSetViewport(p_vout, viewBounds, clipBounds);
/* Most Carbon APIs are not thread-safe, therefore delagate some GUI visibilty update to the main thread */
sendEventToMainThread(GetWindowEventTarget(p_vout->p_sys->theWindow), kEventClassVLCPlugin, kEventVLCPluginHideFullscreen);
if( p_vout->p_sys->theWindow )
sendEventToMainThread(GetWindowEventTarget(p_vout->p_sys->theWindow), kEventClassVLCPlugin, kEventVLCPluginHideFullscreen);
}
else
{
......
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