]> git.sesse.net Git - vlc/commitdiff
video_output: Don't use vlc_object_find to look for the playlist.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 27 May 2008 22:58:09 +0000 (00:58 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 27 May 2008 23:25:36 +0000 (01:25 +0200)
We shouldn't look for the playlist from the vout too... but...

src/video_output/video_output.c

index d71fb1feea62bc3f126a88d3641885ca849bb82e..15494967223da040d28986f933c4d5558bfbe12c 100644 (file)
@@ -509,8 +509,7 @@ static void vout_Destructor( vlc_object_t * p_this )
 #ifndef __APPLE__
     vout_thread_t *p_another_vout;
 
-    playlist_t *p_playlist = vlc_object_find( p_this->p_libvlc,
-                                        VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+    playlist_t *p_playlist = pl_Yield( p_this );
     if( !p_playlist )
         return;
 
@@ -525,7 +524,7 @@ static void vout_Destructor( vlc_object_t * p_this )
         var_SetBool( p_playlist, "intf-show", true );
     else
         vlc_object_release( p_another_vout );
-    vlc_object_release( p_playlist );
+    pl_Release( p_playlist );
 #endif
 }