[vlc-commits] vout/macosx: add error if opengl view initialization failed

David Fuhrmann git at videolan.org
Tue Apr 8 11:54:24 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Tue Apr  8 11:52:50 2014 +0200| [2abaf69c2182f8a668d0c2f96f609f0cd3846464] | committer: David Fuhrmann

vout/macosx: add error if opengl view initialization failed

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

 modules/video_output/macosx.m |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 4267310..46daebf 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -183,8 +183,10 @@ static int Open (vlc_object_t *this)
     nsPool = [[NSAutoreleasePool alloc] init];
 
     [VLCOpenGLVideoView performSelectorOnMainThread:@selector(getNewView:) withObject:[NSValue valueWithPointer:&sys->glView] waitUntilDone:YES];
-    if (!sys->glView)
+    if (!sys->glView) {
+        msg_Err(vd, "Initialization of open gl view failed");
         goto error;
+    }
 
     [sys->glView setVoutDisplay:vd];
 



More information about the vlc-commits mailing list