]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/dvb.c
various modules: adjust to new playlist design
[vlc] / modules / demux / playlist / dvb.c
index 9a7d6e295d3f67d96c75e6936128080c06f3424c..b7c1dbaf67c08a8d7e8b0b5b463bb9b79393ec7c 100644 (file)
@@ -102,6 +102,8 @@ static int Demux( demux_t *p_demux )
     input_item_t *p_input;
     input_item_t *p_current_input = GetCurrentItem(p_demux);
 
+    input_item_node_t *p_subitems = input_item_node_Create( p_current_input );
+
     while( (psz_line = stream_ReadLine( p_demux->s )) )
     {
         char **ppsz_options = NULL;
@@ -121,6 +123,7 @@ static int Demux( demux_t *p_demux )
         p_input = input_item_NewExt( p_demux, "dvb://", psz_name,
                                      i_options, (const char**)ppsz_options, VLC_INPUT_OPTION_TRUSTED, -1 );
         input_item_AddSubItem( p_current_input, p_input );
+        input_item_node_AppendItem( p_subitems, p_input );
         vlc_gc_decref( p_input );
 
         while( i_options-- )
@@ -130,6 +133,9 @@ static int Demux( demux_t *p_demux )
         free( psz_line );
     }
 
+    input_item_AddSubItemTree( p_subitems );
+    input_item_node_Delete( p_subitems );
+
     vlc_gc_decref(p_current_input);
     return 0; /* Needed for correct operation of go back */
 }