[vlc-devel] commit: minimal_macosx: make sure theWindow object exists before sending it an event. ( Jean-Paul Saman )

git version control git at videolan.org
Mon Jun 15 14:47:31 CEST 2009


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun Jun 14 00:06:04 2009 +0200| [ed984cf7e85e6235b938fa7523374508ddbef621] | committer: Derk-Jan Hartman 

minimal_macosx: make sure theWindow object exists before sending it an event.
(cherry picked from commit bf355d950d86b8ae819dff0b1915fe1f655e7d64)

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed984cf7e85e6235b938fa7523374508ddbef621
---

 modules/gui/minimal_macosx/voutagl.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/minimal_macosx/voutagl.m b/modules/gui/minimal_macosx/voutagl.m
index 710176a..80425c2 100644
--- a/modules/gui/minimal_macosx/voutagl.m
+++ b/modules/gui/minimal_macosx/voutagl.m
@@ -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
         {




More information about the vlc-devel mailing list