]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/b4s.c
Don't only play the playlist in playlist demuxers (Closes #84)
[vlc] / modules / demux / playlist / b4s.c
index 01a4d82c563d13df24fe7f7357ff56149d0f968f..01b98a52079e36f432479b6b934cd32dc4d7cb0e 100644 (file)
@@ -391,11 +391,13 @@ static int Demux( demux_t *p_demux )
     }
 
     /* Go back and play the playlist */
-    if( b_play )
+    if( b_play && p_playlist->status.p_item &&
+        p_playlist->status.p_item->i_children > 0 )
     {
         playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,
                           p_playlist->status.i_view,
-                          p_playlist->status.p_item, NULL );
+                          p_playlist->status.p_item,
+                          p_playlist->status.p_item->pp_children[0] );
     }
     
     vlc_object_release( p_playlist );