Commit 3ab66ebe authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

When we fill the name of an input item with URI parts, use decode_URI() so it...

When we fill the name of an input item with URI parts, use decode_URI() so it becomes easier to read.
parent af287865
...@@ -366,6 +366,10 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri ) ...@@ -366,6 +366,10 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri )
psz_filename++; psz_filename++;
if( psz_filename && *psz_filename ) if( psz_filename && *psz_filename )
p_i->psz_name = strdup( psz_filename ); p_i->psz_name = strdup( psz_filename );
/* Make the name more readable */
if( p_i->psz_name )
decode_URI( p_i->psz_name );
} }
/* The name is NULL: fill it with everything except login and password */ /* The name is NULL: fill it with everything except login and password */
...@@ -394,6 +398,10 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri ) ...@@ -394,6 +398,10 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri )
url.psz_path ? url.psz_path : "" ); url.psz_path ? url.psz_path : "" );
} }
vlc_UrlClean( &url ); vlc_UrlClean( &url );
/* Make the name more readable */
if( p_i->psz_name )
decode_URI( p_i->psz_name );
} }
vlc_mutex_unlock( &p_i->lock ); vlc_mutex_unlock( &p_i->lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment