[vlc-devel] commit: Stop the playlist when it is killed. (Laurent Aimar )

git version control git at videolan.org
Tue Jan 6 21:37:52 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan  6 21:18:06 2009 +0100| [ccd6d2b75dbdbe52dfa20533f7b10f8c30cc8dd3] | committer: Laurent Aimar 

Stop the playlist when it is killed.

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

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

diff --git a/src/playlist/thread.c b/src/playlist/thread.c
index 322e79e..1d1a724 100644
--- a/src/playlist/thread.c
+++ b/src/playlist/thread.c
@@ -545,7 +545,7 @@ static void LoopRequest( playlist_t *p_playlist )
     const int i_status = p_sys->request.b_request ?
                          p_sys->request.i_status : p_sys->status.i_status;
 
-    if( i_status == PLAYLIST_STOPPED )
+    if( i_status == PLAYLIST_STOPPED || !vlc_object_alive( p_playlist ) )
     {
         p_sys->status.i_status = PLAYLIST_STOPPED;
 




More information about the vlc-devel mailing list