b_cleanup = true;
if( !psz_mrl ) goto error;
- p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,
+ p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name,
0, NULL, i_duration );
if ( psz_artist && *psz_artist )
input_item_SetArtist( p_input, psz_artist );
input_ItemAddSubItem( p_current_input, p_input );
- for( unsigned i = 0; i < i_options; i++ )
+ for( int i = 0; i < i_options; i++ )
input_ItemAddOpt( p_input, ppsz_options[i], 0 );
vlc_gc_decref( p_input );
free( psz_mrl );