[vlc-devel] commit: WPL: remove silly cut&paste from 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:38:52 2009 +0300| [f9934c83073f9a41363acf0e1a2a429e25025c34] | committer: Rémi Denis-Courmont 

WPL: remove silly cut&paste from M3U

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

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

diff --git a/modules/demux/playlist/wpl.c b/modules/demux/playlist/wpl.c
index b84fdf4..6ad3a69 100644
--- a/modules/demux/playlist/wpl.c
+++ b/modules/demux/playlist/wpl.c
@@ -74,18 +74,6 @@ void Close_WPL( 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;
@@ -111,7 +99,6 @@ static int Demux( demux_t *p_demux )
             if( !EMPTY_STR(psz_uri) )
             {
                 psz_uri = ProcessMRL( psz_uri, p_demux->p_sys->psz_prefix );
-                MaybeFromLocaleRep( &psz_uri );
                 p_input = input_item_NewExt( p_demux, psz_uri, psz_uri,
                                         0, NULL, 0, -1 );
                 input_item_AddSubItem( p_current_input, p_input );




More information about the vlc-devel mailing list