[vlc-devel] commit: media_list_player: Make sure we do return an item to play. Should close #1527. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Aug 3 15:36:26 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Aug  3 15:30:17 2008 +0200| [0aeff1495b5f0626ba0214dd8136c63f6c11c1b5] | committer: Pierre d'Herbemont 

media_list_player: Make sure we do return an item to play. Should close #1527.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0aeff1495b5f0626ba0214dd8136c63f6c11c1b5
---

 src/control/media_list_player.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/control/media_list_player.c b/src/control/media_list_player.c
index 40b45db..1271a56 100644
--- a/src/control/media_list_player.c
+++ b/src/control/media_list_player.c
@@ -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(




More information about the vlc-devel mailing list