[vlc-commits] commit: Mark http-user-agent private ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Sep 17 04:42:19 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 17 05:41:53 2010 +0300| [2c7fa28678ed96ed2d5e569ba2733e0ae1348fc4] | committer: Rémi Denis-Courmont 

Mark http-user-agent private

Modifying from the configuration won't work anyway (since VLC overrides it).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c7fa28678ed96ed2d5e569ba2733e0ae1348fc4
---

 modules/access/http.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 8485044..90b7d48 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -83,10 +83,6 @@ static void Close( vlc_object_t * );
     "Caching value for HTTP streams. This " \
     "value should be set in milliseconds." )
 
-#define AGENT_TEXT N_("HTTP user agent")
-#define AGENT_LONGTEXT N_("User agent that will be " \
-    "used for the connection.")
-
 #define RECONNECT_TEXT N_("Auto re-connect")
 #define RECONNECT_LONGTEXT N_( \
     "Automatically try to reconnect to the stream in case of a sudden " \
@@ -123,10 +119,9 @@ vlc_module_begin ()
     add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
                  CACHING_TEXT, CACHING_LONGTEXT, true )
         change_safe()
-    add_string( "http-user-agent", NULL, NULL,
-                AGENT_TEXT, AGENT_LONGTEXT, true )
+    add_string( "http-user-agent", NULL, NULL, NULL, NULL, false )
         change_safe()
-        change_need_restart()
+        change_private()
     add_bool( "http-reconnect", false, NULL, RECONNECT_TEXT,
               RECONNECT_LONGTEXT, true )
     add_bool( "http-continuous", false, NULL, CONTINUOUS_TEXT,



More information about the vlc-commits mailing list