[vlc-devel] commit: video_output: Don't use vlc_object_find to look for the playlist. ( Pierre d'Herbemont )
git version control
git at videolan.org
Wed May 28 01:25:01 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed May 28 00:58:09 2008 +0200| [6475cab1130971b2bd135ecb5595c9bd0f5f7b15]
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...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6475cab1130971b2bd135ecb5595c9bd0f5f7b15
---
src/video_output/video_output.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index d71fb1f..1549496 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -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
}
More information about the vlc-devel
mailing list