Commit bf355d95 authored by Jean-Paul Saman's avatar Jean-Paul Saman

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

parent 86531ae8
...@@ -233,6 +233,7 @@ int aglManage( vout_thread_t * p_vout ) ...@@ -233,6 +233,7 @@ int aglManage( vout_thread_t * p_vout )
aglSetViewport(p_vout, viewBounds, clipBounds); aglSetViewport(p_vout, viewBounds, clipBounds);
/* Most Carbon APIs are not thread-safe, therefore delagate some GUI visibilty update to the main thread */ /* Most Carbon APIs are not thread-safe, therefore delagate some GUI visibilty update to the main thread */
if( p_vout->p_sys->theWindow )
sendEventToMainThread(GetWindowEventTarget(p_vout->p_sys->theWindow), kEventClassVLCPlugin, kEventVLCPluginHideFullscreen); sendEventToMainThread(GetWindowEventTarget(p_vout->p_sys->theWindow), kEventClassVLCPlugin, kEventVLCPluginHideFullscreen);
} }
else 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