[vlc-devel] commit: playlist: Don't accept request on dead playlist. (Pierre d' Herbemont )
git version control
git at videolan.org
Sun Jul 6 15:44:08 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul 6 14:36:57 2008 +0200| [8002c90b632af06ea8ddfc5c50c16dc26f7c001a]
playlist: Don't accept request on dead playlist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8002c90b632af06ea8ddfc5c50c16dc26f7c001a
---
src/playlist/control.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/playlist/control.c b/src/playlist/control.c
index fa2644c..5bf66f6 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -78,6 +78,9 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
playlist_item_t *p_item, *p_node;
vlc_value_t val;
+ if( !vlc_object_alive( p_playlist ) )
+ return VLC_EGENERIC;
+
if( playlist_IsEmpty( p_playlist ) )
return VLC_EGENERIC;
More information about the vlc-devel
mailing list