Don't yield the playlist object when it's dead already
authorRafaël Carré <funman@videolan.org>
Sun, 30 Mar 2008 18:50:59 +0000 (20:50 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 30 Mar 2008 18:50:59 +0000 (20:50 +0200)
src/input/control.c

index 3b6af5d..210469d 100644 (file)
@@ -598,7 +598,10 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
 
 static void NotifyPlaylist( input_thread_t *p_input )
 {
-    playlist_t *p_playlist = pl_Yield( p_input );
+    playlist_t *p_playlist = pl_Get( p_input );
+    if( p_playlist->b_die )
+        return;
+    vlc_object_yield( p_playlist );
     var_SetInteger( p_playlist, "item-change",
                     p_input->p->input.p_item->i_id );
     pl_Release( p_input );