]> git.sesse.net Git - vlc/commitdiff
Remove the --user-agent hack
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Jul 2010 19:45:34 +0000 (22:45 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Jul 2010 19:45:34 +0000 (22:45 +0300)
bin/vlc.c
src/libvlc-module.c

index e317df119c86b5d2ce1f59a286ae513e5ef6d085..ef3a4b511e7ec3db1b57d38516f9d1fa02ecde4a 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -166,11 +166,10 @@ int main( int i_argc, const char *ppsz_argv[] )
     pthread_sigmask (SIG_BLOCK, &set, NULL);
 
     /* Note that FromLocale() can be used before libvlc is initialized */
-    const char *argv[i_argc + 4];
+    const char *argv[i_argc + 3];
     int argc = 0;
 
     argv[argc++] = "--no-ignore-config";
-    argv[argc++] = "--user-agent=\"VLC media player\"";
 #ifdef TOP_BUILDDIR
     argv[argc++] = FromLocale ("--plugin-path="TOP_BUILDDIR"/modules");
 #endif
@@ -224,7 +223,7 @@ int main( int i_argc, const char *ppsz_argv[] )
 out:
     if (vlc != NULL)
         libvlc_release (vlc);
-    for (int i = 2; i < argc; i++)
+    for (int i = 1; i < argc; i++)
         LocaleFree (argv[i]);
 
 #ifdef RTLD_NOLOAD
index 72cca5574c125e690e7613582e548f819b012c0c..de04ee2dc7190e0e303404f2bfedc1684a09de1e 100644 (file)
@@ -2061,10 +2061,6 @@ vlc_module_begin ()
                    DATA_PATH_LONGTEXT, true )
         change_need_restart ()
 
-    add_string( "user-agent", "(LibVLC "VERSION")", NULL, NULL, NULL, true )
-        change_safe ()
-        change_private ()
-
     set_section( N_("Performance options"), NULL )
     add_obsolete_bool( "minimize-threads" )