]> git.sesse.net Git - vlc/commitdiff
playlist: Don't accept request on dead playlist.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 6 Jul 2008 12:36:57 +0000 (14:36 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 6 Jul 2008 13:46:16 +0000 (15:46 +0200)
src/playlist/control.c

index fa2644cc162f919a501a3b478f1b173fc891ae27..5bf66f6d0d868e1f7b8a8f0a65ac8be53d9cf15a 100644 (file)
@@ -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;