[vlc-devel] commit: Fix #2720 for master also. Finally that' s not an hack as the code is build to ( Rémi Duraffort )

git version control git at videolan.org
Fri Jun 19 10:40:12 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 15 19:51:18 2009 +0200| [222cceba4435dc9e4d5dc2d7d14fa7c32e023a11] | committer: Rémi Duraffort 

Fix #2720 for master also. Finally that's not an hack as the code is build to
stop the playlist just after removing the playing item (so that's ok to stop
the PL even when it's empty).

(cherry picked from commit be1f4305f1203ccf5acc402fd2cc80dde3f5b1cd)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 src/playlist/control.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/playlist/control.c b/src/playlist/control.c
index 313a145..4aed888 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -104,7 +104,7 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
     if( !vlc_object_alive( p_playlist ) )
         return VLC_EGENERIC;
 
-    if( playlist_IsEmpty( p_playlist ) )
+    if( playlist_IsEmpty( p_playlist ) && i_query != PLAYLIST_STOP )
         return VLC_EGENERIC;
 
     switch( i_query )




More information about the vlc-devel mailing list