]> git.sesse.net Git - vlc/commitdiff
Set the proper flags for item options
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Mar 2008 17:38:21 +0000 (19:38 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Mar 2008 17:38:21 +0000 (19:38 +0200)
modules/demux/playlist/m3u.c

index 89d57c4d733efde4b7247f169127342452ee9291..cfa3db70fdd47ec8f05a579bafe41878fd8686af 100644 (file)
@@ -183,11 +183,13 @@ static int Demux( demux_t *p_demux )
             if( !psz_mrl ) goto error;
 
             p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,
-                                        i_options, ppsz_options, i_duration );
+                                        0, NULL, i_duration );
             if ( psz_artist && *psz_artist )
                 input_ItemAddInfo( p_input, _(VLC_META_INFO_CAT),
                                    _(VLC_META_ARTIST), "%s", psz_artist );
             input_ItemAddSubItem( p_current_input, p_input );
+            for( unsigned i = 0; i < i_options; i++ )
+                input_ItemAddOpt( p_input, ppsz_options[i], 0 );
             vlc_gc_decref( p_input );
             free( psz_mrl );
         }