[vlc-devel] commit: libvlc: Don' t raise an exception if there is no vout in set_drawable. (Pierre d' Herbemont )

git version control git at videolan.org
Sat Jul 19 12:55:04 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jul 19 12:56:53 2008 +0200| [d1a4a59a95672102d96b97288f81bfe3be653890]

libvlc: Don't raise an exception if there is no vout in set_drawable.

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

 src/control/media_player.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index b2d096f..a52fa0c 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -724,9 +724,7 @@ void libvlc_media_player_set_drawable( libvlc_media_player_t *p_mi,
     }
 
     p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_CHILD );
-    if( !p_vout )
-        libvlc_exception_raise( p_e, "No active video output" );
-    else
+    if( p_vout )
     {
         vout_Control( p_vout , VOUT_REPARENT, drawable);
         vlc_object_release( p_vout );




More information about the vlc-devel mailing list