]> git.sesse.net Git - vlc/blobdiff - modules/access/http.c
Restore LibVLC/VERSION at the end of the HTTP user agent
[vlc] / modules / access / http.c
index 11f145e1814b6907b3539947610ffee66042ea3d..8485044568a22abfa872416538ddebbe0281b953 100644 (file)
@@ -123,7 +123,7 @@ 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", PACKAGE_NAME"/"PACKAGE_VERSION, NULL,
+    add_string( "http-user-agent", NULL, NULL,
                 AGENT_TEXT, AGENT_LONGTEXT, true )
         change_safe()
         change_need_restart()
@@ -1074,7 +1074,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
         /* */
         case ACCESS_GET_PTS_DELAY:
             pi_64 = (int64_t*)va_arg( args, int64_t * );
-            *pi_64 = (int64_t)var_GetInteger( p_access, "http-caching" ) * 1000;
+            *pi_64 = var_GetInteger( p_access, "http-caching" ) * 1000;
             break;
 
         /* */
@@ -1285,7 +1285,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
     }
     /* User Agent */
     net_Printf( p_access, p_sys->fd, pvs,
-                "User-Agent: %s LibVLC/"VERSION"\r\n",
+                "User-Agent: %s\r\n",
                 p_sys->psz_user_agent );
     /* Offset */
     if( p_sys->i_version == 1 && ! p_sys->b_continuous )