Commit edc42895 authored by Philippe Coent's avatar Philippe Coent Committed by Felix Paul Kühne

MobileVLCKit: updated libvlc initialization to current API

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent dcb88c65
...@@ -81,11 +81,7 @@ static VLCLibrary * sharedLibrary = nil; ...@@ -81,11 +81,7 @@ static VLCLibrary * sharedLibrary = nil;
paramNum++; paramNum++;
} }
unsigned argc = sizeof(lib_vlc_params)/sizeof(lib_vlc_params[0]); unsigned argc = sizeof(lib_vlc_params)/sizeof(lib_vlc_params[0]);
#if TARGET_OS_IPHONE
instance = libvlc_new_with_builtins(argc, lib_vlc_params, vlc_builtins_modules);
#else
instance = libvlc_new(argc, lib_vlc_params); instance = libvlc_new(argc, lib_vlc_params);
#endif
NSAssert(instance, @"libvlc failed to initialize"); NSAssert(instance, @"libvlc failed to initialize");
} }
return self; return self;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment