]> git.sesse.net Git - vlc/commitdiff
vlc-cache-gen: no media library
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 30 Jan 2010 22:15:21 +0000 (00:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 30 Jan 2010 22:15:21 +0000 (00:15 +0200)
This really should default to off everywhere except in VLC though.

bin/cachegen.c

index 17f01a3a1a212733041dfe9690fba5004e240f3a..b10270b64e8ae21c148280df95d293b2cbd81ba0 100644 (file)
@@ -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);