[vlc-devel] commit: Do not decode URI in the name. It borks some types badly. ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jul 12 15:55:43 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 12 16:49:14 2009 +0300| [eea83cd43f18e2dc6b634322e987fcf2838f2e18] | committer: Rémi Denis-Courmont 

Do not decode URI in the name. It borks some types badly.

Some URI types do not need URI-encoding, yet use the percent sign.
E.g. http://forum.videolan.org/viewtopic.php?f=13&t=61946
(cherry picked from commit 4ac6e6dff3c63ca78db052d4f0350c3ea599cbc8)

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

 src/input/item.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index 17c08dd..c8158af 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -405,10 +405,6 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri )
         vlc_UrlClean( &url );
         if( -1==r )
             p_i->psz_name=NULL; /* recover from undefined value */
-
-        /* Make the name more readable */
-        if( p_i->psz_name )
-            decode_URI( p_i->psz_name );
     }
 
     vlc_mutex_unlock( &p_i->lock );




More information about the vlc-devel mailing list