[vlc-commits] playlist: remove WMS support from the PLS parser

Rémi Denis-Courmont git at videolan.org
Sun Mar 31 16:37:07 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 31 17:35:23 2019 +0300| [d47cccab30c7a8903c8173f27c57a52653f40f21] | committer: Rémi Denis-Courmont

playlist: remove WMS support from the PLS parser

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

 modules/demux/playlist/pls.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/modules/demux/playlist/pls.c b/modules/demux/playlist/pls.c
index 6d71461779..0f44c28463 100644
--- a/modules/demux/playlist/pls.c
+++ b/modules/demux/playlist/pls.c
@@ -55,7 +55,6 @@ int Import_PLS( vlc_object_t *p_this )
     }
 
     if( strncasecmp( (const char *)p_peek, "[playlist]", 10 )
-     && strncasecmp( (const char *)p_peek, "[Reference]", 10 )
      && !stream_HasExtension( p_demux, ".pls" ) )
         return VLC_EGENERIC;
 
@@ -96,8 +95,7 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
             psz_line = latin;
         }
 
-        if( !strncasecmp( psz_line, "[playlist]", sizeof("[playlist]")-1 ) ||
-            !strncasecmp( psz_line, "[Reference]", sizeof("[Reference]")-1 ) )
+        if( !strncasecmp( psz_line, "[playlist]", sizeof("[playlist]")-1 ) )
         {
             free( psz_line );
             continue;
@@ -159,18 +157,11 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
             i_item = i_new_item;
         }
 
-        if( !strncasecmp( psz_key, "file", sizeof("file") -1 ) ||
-            !strncasecmp( psz_key, "Ref", sizeof("Ref") -1 ) )
+        if( !strncasecmp( psz_key, "file", sizeof("file") -1 ) )
         {
             free( psz_mrl_orig );
             psz_mrl_orig =
             psz_mrl = ProcessMRL( psz_value, p_demux->psz_url );
-
-            if( !strncasecmp( psz_key, "Ref", sizeof("Ref") -1 ) )
-            {
-                if( !strncasecmp( psz_mrl, "http://", sizeof("http://") -1 ) )
-                    memcpy( psz_mrl, "mmsh", 4 );
-            }
         }
         else if( !strncasecmp( psz_key, "title", sizeof("title") -1 ) )
         {



More information about the vlc-commits mailing list