Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
65ee7a17 by Alexandre Janniaux at 2023-12-09T17:05:49+00:00
test: iosvlc: drop first program_name argv
argv[0] will contain the path to the application, and forwarding it to
libvlc_new() would only make vlc try to play the file.
- - - - -
1 changed file:
- test/iosvlc.m
Changes:
=====================================
test/iosvlc.m
=====================================
@@ -99,13 +99,13 @@
/* Store startup arguments to forward them to libvlc */
NSArray *arguments = [[NSProcessInfo processInfo] arguments];
- unsigned vlc_argc = [arguments count];
+ unsigned vlc_argc = [arguments count] - 1;
const char **vlc_argv = malloc(vlc_argc * sizeof *vlc_argv);
if (vlc_argv == NULL)
return NO;
for (unsigned i = 0; i < vlc_argc; i++)
- vlc_argv[i] = [[arguments objectAtIndex:i] UTF8String];
+ vlc_argv[i] = [[arguments objectAtIndex:i + 1] UTF8String];
/* Initialize libVLC */
_libvlc = libvlc_new(vlc_argc, (const char * const*)vlc_argv);
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/65ee7a1704b0371cabbd0e1e3fc772c47e2d9c4a
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/65ee7a1704b0371cabbd0e1e3fc772c47e2d9c4a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits