]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/m3u.c
Kill a Warning
[vlc] / modules / demux / playlist / m3u.c
index 8ae097ddaae3a88041f9ff85f00095017bb95352..1a054a29f05d74b2ba202b6fed54520dc0924bc6 100644 (file)
@@ -182,14 +182,14 @@ static int Demux( demux_t *p_demux )
             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 );