[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
Sun Jun 14 20:09:10 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Sun Jun 14 00:06:04 2009 +0200| [bf355d950d86b8ae819dff0b1915fe1f655e7d64] | committer: Jean-Paul Saman
minimal_macosx: make sure theWindow object exists before sending it an event.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf355d950d86b8ae819dff0b1915fe1f655e7d64
---
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