[vlc-devel] commit: Use input_GetVout() instead of vlc_object_find() ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed May 13 20:58:28 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Wed May 13 21:38:56 2009 +0300| [65a17d9832469de70ab6a476566c2ef05878f67f] | committer: Rémi Denis-Courmont 

Use input_GetVout() instead of vlc_object_find()

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

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

diff --git a/src/control/video.c b/src/control/video.c
index 81c0052..dc7c922 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -37,17 +37,17 @@
 static vout_thread_t *GetVout( libvlc_media_player_t *p_mi,
                                libvlc_exception_t *p_exception )
 {
-    input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi, p_exception );
+    input_thread_t *p_input = libvlc_get_input_thread( p_mi, p_exception );
     vout_thread_t *p_vout = NULL;
 
-    if( p_input_thread )
+    if( p_input )
     {
-        p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_CHILD );
+        p_vout = input_GetVout( p_input );
         if( !p_vout )
         {
             libvlc_exception_raise( p_exception, "No active video output" );
         }
-        vlc_object_release( p_input_thread );
+        vlc_object_release( p_input );
     }
     return p_vout;
 }
@@ -176,7 +176,7 @@ int libvlc_media_player_has_vout( libvlc_media_player_t *p_mi,
     {
         vout_thread_t *p_vout;
 
-        p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_CHILD );
+        p_vout = input_GetVout( p_input_thread );
         if( p_vout )
         {
             has_vout = true;




More information about the vlc-devel mailing list