[vlc-devel] commit: libvlc: Don't attempt to search an input's vout everywhere. Only search it in input's children. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Jun 13 15:05:34 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri Jun 13 14:55:03 2008 +0200| [6b718fb870c80fddff21e2a87b25beee190f10bf]

libvlc: Don't attempt to search an input's vout everywhere. Only search it in input's children.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b718fb870c80fddff21e2a87b25beee190f10bf
---

 src/control/video.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 965f8f8..ba60fe0 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -42,7 +42,7 @@ static vout_thread_t *GetVout( libvlc_media_player_t *p_mi,
 
     if( p_input_thread )
     {
-        p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_ANYWHERE );
+        p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_CHILD );
         if( !p_vout )
         {
             libvlc_exception_raise( p_exception, "No active video output" );




More information about the vlc-devel mailing list