Commit effea1b9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ITML playlist: do not decode URI when creating item (!)

parent f36b9bc6
...@@ -347,7 +347,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node, ...@@ -347,7 +347,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
VLC_UNUSED(psz_element); VLC_UNUSED(p_handlers); VLC_UNUSED(psz_element); VLC_UNUSED(p_handlers);
input_item_t *p_new_input = NULL; input_item_t *p_new_input = NULL;
int i_ret; int i_ret;
char *psz_uri = NULL;
p_track = new_track(); p_track = new_track();
xml_elem_hnd_t track_elements[] = xml_elem_hnd_t track_elements[] =
...@@ -374,13 +373,8 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node, ...@@ -374,13 +373,8 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
return false; return false;
} }
psz_uri = decode_URI_duplicate( p_track->location ); msg_Info( p_demux, "Adding '%s'", p_track->location );
p_new_input = input_item_New( p_demux, p_track->location, NULL );
if( psz_uri )
{
msg_Info( p_demux, "Adding '%s'", psz_uri );
p_new_input = input_item_New( p_demux, psz_uri, NULL );
input_item_node_AppendItem( p_input_node, p_new_input ); input_item_node_AppendItem( p_input_node, p_new_input );
/* add meta info */ /* add meta info */
...@@ -388,8 +382,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node, ...@@ -388,8 +382,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
vlc_gc_decref( p_new_input ); vlc_gc_decref( p_new_input );
p_demux->p_sys->i_ntracks++; p_demux->p_sys->i_ntracks++;
free( psz_uri );
}
free_track( p_track ); free_track( p_track );
return i_ret; return i_ret;
......
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