[vlc-devel] commit: macosx/framework: Assert that we correctly initialized libvlc. ( Pierre d'Herbemont )

git version control git at videolan.org
Fri Dec 18 11:58:25 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Dec 18 11:56:57 2009 +0100| [77575de85908cd00d151cf83490cc7bce61151af] | committer: Pierre d'Herbemont 

macosx/framework: Assert that we correctly initialized libvlc.

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

 projects/macosx/framework/Sources/VLCLibrary.m |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/projects/macosx/framework/Sources/VLCLibrary.m b/projects/macosx/framework/Sources/VLCLibrary.m
index a30d2ed..eb572cf 100644
--- a/projects/macosx/framework/Sources/VLCLibrary.m
+++ b/projects/macosx/framework/Sources/VLCLibrary.m
@@ -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];




More information about the vlc-devel mailing list