X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fplaylist%2Fqtl.c;h=d10d4f5f23c8e5dad7384ab72e9317b98baf1132;hb=78be7ca222d06e3cd85d4cc547573371507e7b07;hp=51f5a5ebee72a0f67121de15894db16477b7dcf5;hpb=75c556adcbc9c2ef2b9f075f09c4f1706f20bd0e;p=vlc diff --git a/modules/demux/playlist/qtl.c b/modules/demux/playlist/qtl.c index 51f5a5ebee..d10d4f5f23 100644 --- a/modules/demux/playlist/qtl.c +++ b/modules/demux/playlist/qtl.c @@ -304,19 +304,21 @@ static int Demux( demux_t *p_demux ) } else { + input_item_node_t *p_subitems = input_item_node_Create( p_current_input ); p_input = input_item_New( p_demux, psz_src, psz_moviename ); #define SADD_INFO( type, field ) if( field ) { input_item_AddInfo( \ p_input, "QuickTime Media Link", type, "%s", field ) ; } SADD_INFO( "href", psz_href ); SADD_INFO( _("Mime"), psz_mimetype ); - input_item_AddSubItem( p_current_input, p_input ); + input_item_node_AppendItem( p_subitems, p_input ); vlc_gc_decref( p_input ); if( psz_qtnext ) { p_input = input_item_New( p_demux, psz_qtnext, NULL ); - input_item_AddSubItem( p_current_input, p_input ); + input_item_node_AppendItem( p_subitems, p_input ); vlc_gc_decref( p_input ); } + input_item_node_PostAndDelete( p_subitems ); } i_ret = 0; /* Needed for correct operation of go back */