[vlc-devel] commit: ZPL: remove blind cut&paste code frmo M3U ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Oct 1 20:47:13 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct  1 21:46:55 2009 +0300| [e53915de80ba8c39d863a2886de330fc8b7f3e31] | committer: Rémi Denis-Courmont 

ZPL: remove blind cut&paste code frmo M3U

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

 modules/demux/playlist/zpl.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/modules/demux/playlist/zpl.c b/modules/demux/playlist/zpl.c
index 6c843a7..8d64afc 100644
--- a/modules/demux/playlist/zpl.c
+++ b/modules/demux/playlist/zpl.c
@@ -74,18 +74,6 @@ void Close_ZPL( vlc_object_t *p_this )
     free( p_demux->p_sys );
 }
 
-static inline void MaybeFromLocaleRep (char **str)
-{
-    char *const orig_str = *str;
-
-    if ((orig_str != NULL) && !IsUTF8 (orig_str))
-    {
-        *str = FromLocaleDup (orig_str);
-        free (orig_str);
-    }
-}
-
-
 static int Demux( demux_t *p_demux )
 {
     char       *psz_line;
@@ -132,8 +120,6 @@ static int Demux( demux_t *p_demux )
             if( !EMPTY_STR(psz_tabvalue) )
             {
                 psz_mrl = ProcessMRL( psz_tabvalue, p_demux->p_sys->psz_prefix );
-                if( psz_mrl )
-                    MaybeFromLocaleRep( &psz_mrl );
             }
             free( psz_tabvalue );
         }




More information about the vlc-devel mailing list