]> git.sesse.net Git - vlc/commitdiff
media_list_player: Make sure we do return an item to play. Should close #1527.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 3 Aug 2008 13:30:17 +0000 (15:30 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 3 Aug 2008 13:38:58 +0000 (15:38 +0200)
src/control/media_list_player.c

index 40b45dba0b70e8cec0662d770da64d24b3e1f080..1271a56682db433363be76b04063b2aa637f9ec5 100644 (file)
@@ -43,7 +43,9 @@ get_next_path( libvlc_media_list_player_t * p_mlp )
 
     if ( !p_mlp->current_playing_item_path )
     {
-        p_mlp->current_playing_item_path = libvlc_media_list_path_empty();
+        ret = libvlc_media_list_path_empty();
+        libvlc_media_list_path_append( &ret, 0 );
+        return ret;
     }
     
     p_sublist_of_playing_item = libvlc_media_list_sublist_at_path(