[vlc-devel] commit: minimal_macosx: Don't attempt to use the vout when there is none. ( Pierre d'Herbemont )

git version control git at videolan.org
Sat Oct 10 16:29:43 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sat Oct 10 16:13:24 2009 +0200| [b3b6658b69250d8d8c4145abb1d8ea8aadbb5c88] | committer: Pierre d'Herbemont 

minimal_macosx: Don't attempt to use the vout when there is none.

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

 modules/gui/minimal_macosx/VLCOpenGLVoutView.m |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/minimal_macosx/VLCOpenGLVoutView.m b/modules/gui/minimal_macosx/VLCOpenGLVoutView.m
index 38ee22f..8b50b42 100644
--- a/modules/gui/minimal_macosx/VLCOpenGLVoutView.m
+++ b/modules/gui/minimal_macosx/VLCOpenGLVoutView.m
@@ -360,6 +360,8 @@ void cocoaglvoutviewUnlock( vout_thread_t * p_vout )
 
 - (void) update
 {
+    if (!p_vout)
+        return;
     if( kCGLNoError != CGLLockContext([[self openGLContext] CGLContextObj]) )
         return;
     [super update];
@@ -368,6 +370,8 @@ void cocoaglvoutviewUnlock( vout_thread_t * p_vout )
 
 - (void) drawRect: (NSRect) rect
 {
+    if (!p_vout)
+        return;
     if( kCGLNoError != CGLLockContext([[self openGLContext] CGLContextObj]) )
         return;
     [[self openGLContext] flushBuffer];




More information about the vlc-devel mailing list