/* we found a new item, insert the previous */
if( psz_mrl )
{
- p_input = input_item_New( p_demux, psz_mrl, psz_name );
+ p_input = input_item_New( psz_mrl, psz_name );
input_item_CopyOptions( p_current_input, p_input );
input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
free( psz_mrl_orig );
- psz_mrl_orig = NULL;
+ psz_mrl_orig = psz_mrl = NULL;
}
else
{
if( !strncasecmp( psz_key, "Ref", sizeof("Ref") -1 ) )
{
if( !strncasecmp( psz_mrl, "http://", sizeof("http://") -1 ) )
- {
- psz_mrl++;
- psz_mrl[0] = 'm';
- psz_mrl[1] = 'm';
- psz_mrl[2] = 's';
- }
+ memcpy( psz_mrl, "mmsh", 4 );
}
}
else if( !strncasecmp( psz_key, "title", sizeof("title") -1 ) )
/* Add last object */
if( psz_mrl )
{
- p_input = input_item_New( p_demux, psz_mrl, psz_name );
+ p_input = input_item_New( psz_mrl, psz_name );
input_item_CopyOptions( p_current_input, p_input );
input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
free( psz_mrl_orig );
- psz_mrl = NULL;
}
else
{