From: RĂ©mi Denis-Courmont Date: Sat, 30 Jan 2010 22:15:21 +0000 (+0200) Subject: vlc-cache-gen: no media library X-Git-Tag: 1.1.0-ff~639 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=98ff57ae3a17d1a43cd4dc15f4d0c7da25648841 vlc-cache-gen: no media library This really should default to off everywhere except in VLC though. --- diff --git a/bin/cachegen.c b/bin/cachegen.c index 17f01a3a1a..b10270b64e 100644 --- a/bin/cachegen.c +++ b/bin/cachegen.c @@ -90,14 +90,16 @@ int main (int argc, char *argv[]) const char *const vlc_argv[] = { "--ignore-config", "--quiet", + "--no-media-library", arg, NULL, }; + size_t vlc_argc = sizeof (vlc_argv) / sizeof (vlc_argv[0]) - 1; libvlc_exception_t ex; libvlc_exception_init (&ex); - libvlc_instance_t *vlc = libvlc_new (3, vlc_argv, &ex); + libvlc_instance_t *vlc = libvlc_new (vlc_argc, vlc_argv, &ex); if (vlc != NULL) libvlc_release (vlc); free (arg);