]> git.sesse.net Git - vlc/commitdiff
* mmsh.c: Try using the http-proxy config option if mmsh-proxy wasn't set (Untested).
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 4 May 2007 21:48:04 +0000 (21:48 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 4 May 2007 21:48:04 +0000 (21:48 +0000)
modules/access/mms/mmsh.c

index 7c5747af33fa56c35f531f082baf1220e0ca8066..99cf27a68f32a58dd60b49ca73b21acbbd0912d9 100644 (file)
@@ -41,7 +41,6 @@
 #include "mmsh.h"
 
 /* TODO:
- *  - http_proxy
  *  - authentication
  */
 
@@ -104,6 +103,20 @@ int E_(MMSHOpen)( access_t *p_access )
     /* Check proxy */
     /* TODO reuse instead http-proxy from http access ? */
     psz_proxy = var_CreateGetString( p_access, "mmsh-proxy" );
+    if( !*psz_proxy )
+    {
+        char *psz_http_proxy = config_GetPsz( p_access, "http-proxy" );
+        if( psz_http_proxy && *psz_http_proxy )
+        {
+            free( psz_proxy );
+            psz_proxy = psz_http_proxy;
+            var_SetString( p_access, "mmsh-proxy", psz_proxy );
+        }
+        else
+        {
+            free( psz_http_proxy );
+        }
+    }
     if( *psz_proxy )
     {
         p_sys->b_proxy = VLC_TRUE;