src/control/video.c: Replace vlc_object_find with input_GetVout()
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Fri, 27 Mar 2009 11:22:08 +0000 (12:22 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 12 May 2009 10:50:12 +0000 (12:50 +0200)
src/control/video.c

index 81c0052..725a8f3 100644 (file)
@@ -42,7 +42,7 @@ static vout_thread_t *GetVout( libvlc_media_player_t *p_mi,
 
     if( p_input_thread )
     {
 
     if( p_input_thread )
     {
-        p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_CHILD );
+        p_vout = input_GetVout( p_input_thread );
         if( !p_vout )
         {
             libvlc_exception_raise( p_exception, "No active video output" );
         if( !p_vout )
         {
             libvlc_exception_raise( p_exception, "No active video output" );
@@ -176,7 +176,7 @@ int libvlc_media_player_has_vout( libvlc_media_player_t *p_mi,
     {
         vout_thread_t *p_vout;
 
     {
         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;
         if( p_vout )
         {
             has_vout = true;