]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Assert that we correctly initialized libvlc.
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 18 Dec 2009 10:56:57 +0000 (11:56 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 18 Dec 2009 10:56:57 +0000 (11:56 +0100)
projects/macosx/framework/Sources/VLCLibrary.m

index a30d2ed575f75f9d737d032305c32d7022f27d0c..eb572cfb5bbef41099d2fcd3d4acaed11dc8e151 100644 (file)
@@ -81,6 +81,7 @@ void __catch_exception( void * e, const char * function, const char * file, int
         
         instance = (void *)libvlc_new( sizeof(lib_vlc_params)/sizeof(lib_vlc_params[0]), lib_vlc_params, &ex );
         catch_exception( &ex );
+        NSAssert(instance, @"libvlc failed to initialize");
         
         // Assignment unneeded, as the audio unit will do it for us
         /*audio = */ [[VLCAudio alloc] initWithLibrary:self];