Commit 990fd1cd authored by Rémi Duraffort's avatar Rémi Duraffort

itml: the core knows how to handle file://localhost/

parent f9ca2028
......@@ -376,11 +376,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_t *p_input_item,
if( psz_uri )
{
if( strlen( psz_uri ) > 17 &&
!strncmp( psz_uri, "file://localhost/", 17 ) )
{
/* remove 'localhost/' */
memmove( psz_uri + 7, psz_uri + 17, strlen( psz_uri ) - 9 );
msg_Info( p_demux, "Adding '%s'", psz_uri );
p_new_input = input_item_New( p_demux, psz_uri, NULL );
......@@ -391,11 +386,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_t *p_input_item,
vlc_gc_decref( p_new_input );
p_demux->p_sys->i_ntracks++;
}
else
{
msg_Err( p_demux, "Don't know how to handle %s", psz_uri );
}
free( psz_uri );
}
......
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