[vlc-devel] commit: playlist: Make sure the currently playing item is released, even if destroyed. (Pierre d'Herbemont )
git version control
git at videolan.org
Sun Jul 6 19:37:15 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul 6 19:39:27 2008 +0200| [d1863133191334a600e78d16838648eb7ca36f18]
playlist: Make sure the currently playing item is released, even if destroyed.
(Happens when using a service discovery).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1863133191334a600e78d16838648eb7ca36f18
---
src/playlist/engine.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 152b48b..1a39ce5 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -487,6 +487,14 @@ void playlist_LastLoop( playlist_t *p_playlist )
playlist_ItemDelete( p_playlist->status.p_node );
p_playlist->status.p_node = NULL;
}
+ if( p_playlist->status.p_item &&
+ p_playlist->status.p_item->i_flags & PLAYLIST_REMOVE_FLAG )
+ {
+ PL_DEBUG( "%s was marked for deletion, deleting",
+ PLI_NAME( p_playlist->status.p_item ) );
+ playlist_ItemDelete( p_playlist->status.p_item );
+ p_playlist->status.p_item = NULL;
+ }
/* Core should have terminated all SDs before the playlist */
/* TODO: It fails to do so when not playing anything -- Courmisch */
More information about the vlc-devel
mailing list