]> git.sesse.net Git - vlc/commitdiff
vout/macosx: add error if opengl view initialization failed
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Tue, 8 Apr 2014 09:52:50 +0000 (11:52 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Tue, 8 Apr 2014 09:53:41 +0000 (11:53 +0200)
modules/video_output/macosx.m

index 4267310c013d6c74b9d3d60a479a769ec76ddc3d..46daebf54561c9c050ae96d9cf909aecbc93bc64 100644 (file)
@@ -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];