Commit 6475cab1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

video_output: Don't use vlc_object_find to look for the playlist.

We shouldn't look for the playlist from the vout too... but...
parent ee6f60d7
...@@ -509,8 +509,7 @@ static void vout_Destructor( vlc_object_t * p_this ) ...@@ -509,8 +509,7 @@ static void vout_Destructor( vlc_object_t * p_this )
#ifndef __APPLE__ #ifndef __APPLE__
vout_thread_t *p_another_vout; vout_thread_t *p_another_vout;
playlist_t *p_playlist = vlc_object_find( p_this->p_libvlc, playlist_t *p_playlist = pl_Yield( p_this );
VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( !p_playlist ) if( !p_playlist )
return; return;
...@@ -525,7 +524,7 @@ static void vout_Destructor( vlc_object_t * p_this ) ...@@ -525,7 +524,7 @@ static void vout_Destructor( vlc_object_t * p_this )
var_SetBool( p_playlist, "intf-show", true ); var_SetBool( p_playlist, "intf-show", true );
else else
vlc_object_release( p_another_vout ); vlc_object_release( p_another_vout );
vlc_object_release( p_playlist ); pl_Release( p_playlist );
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment