]> git.sesse.net Git - vlc/commitdiff
minimal_macosx: make sure theWindow object exists before sending it an event.
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 13 Jun 2009 22:06:04 +0000 (00:06 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 15 Jun 2009 12:47:27 +0000 (14:47 +0200)
(cherry picked from commit bf355d950d86b8ae819dff0b1915fe1f655e7d64)

Signed-off-by: Derk-Jan Hartman <hartman@videolan.org>
modules/gui/minimal_macosx/voutagl.m

index 710176ac49a7063c16244d0bf72731f59ec62b43..80425c2bd606099e48d2a6177ca2f31e507dae75 100644 (file)
@@ -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
         {