]> git.sesse.net Git - vlc/blobdiff - src/libvlc-module.c
Add a secret --user-agent option to pass the application name
[vlc] / src / libvlc-module.c
index bfcc201cb2d36b826019bf4b6d8e992ab0d9bc8a..ee131aeb7a660558308b6679ade5f1d1507c5d7d 100644 (file)
@@ -2052,6 +2052,10 @@ vlc_module_begin ()
                    DATA_PATH_LONGTEXT, true )
         change_need_restart ()
 
+    add_string( "user-agent", "(LibVLC "VERSION")", NULL, "", "", true )
+        change_safe ()
+        change_private ()
+
     set_section( N_("Performance options"), NULL )
     add_obsolete_bool( "minimize-threads" )