[vlc-commits] http: remove MMS redirect

Rémi Denis-Courmont git at videolan.org
Thu Jun 30 20:28:24 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 29 19:49:26 2016 +0300| [e8edd10e59767cb7229b928a89dfb4eba6ce562f] | committer: Rémi Denis-Courmont

http: remove MMS redirect

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

 modules/access/http.c |   20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 093211e..092b703 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -119,7 +119,6 @@ struct access_sys_t
 
     char       *psz_mime;
     char       *psz_location;
-    bool b_mms;
     bool b_icecast;
 
     bool b_chunked;
@@ -181,7 +180,6 @@ static int Open( vlc_object_t *p_this )
     p_sys->psz_proxy_passbuf = NULL;
     p_sys->b_seekable = true;
     p_sys->psz_mime = NULL;
-    p_sys->b_mms = false;
     p_sys->b_icecast = false;
     p_sys->psz_location = NULL;
     p_sys->psz_user_agent = NULL;
@@ -388,17 +386,6 @@ connect:
         goto error;
     }
 
-    if( p_sys->p_creds == NULL && p_sys->b_mms )
-    {
-        msg_Dbg( p_access, "redirecting to MMS plug-in" );
-
-        if( unlikely(asprintf( &p_access->psz_url, "mmsh://%s",
-                               p_access->psz_location ) == -1) )
-            p_access->psz_url = NULL;
-        ret = VLC_ACCESS_REDIRECT;
-        goto error;
-    }
-
     if( p_sys->b_reconnect ) msg_Dbg( p_access, "auto re-connect enabled" );
 
     /* Set up p_access */
@@ -817,7 +804,6 @@ static int Connect( access_t *p_access, uint64_t i_tell )
 
     p_sys->psz_location = NULL;
     p_sys->psz_mime = NULL;
-    p_sys->b_mms = false;
     p_sys->b_chunked = false;
     p_sys->i_chunk = 0;
     p_sys->i_icy_meta = 0;
@@ -1132,12 +1118,6 @@ static int Request( access_t *p_access, uint64_t i_tell )
         {
             msg_Dbg( p_access, "Content-Encoding: %s", p );
         }
-        else if( !strcasecmp( psz, "Pragma" ) )
-        {
-            if( !strcasecmp( psz, "Pragma: features" ) )
-                p_sys->b_mms = true;
-            msg_Dbg( p_access, "Pragma: %s", p );
-        }
         else if( !strcasecmp( psz, "Server" ) )
         {
             msg_Dbg( p_access, "Server: %s", p );



More information about the vlc-commits mailing list