소스 검색

macosx/framework: Assert that we correctly initialized libvlc.

Pierre d'Herbemont 15 년 전
부모
커밋
f0adfe4b26
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Sources/VLCLibrary.m

+ 1 - 0
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];