From: Pierre d'Herbemont Date: Sat, 19 Jul 2008 10:56:53 +0000 (+0200) Subject: libvlc: Don't raise an exception if there is no vout in set_drawable. X-Git-Tag: 0.9.0-test3~371 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d1a4a59a95672102d96b97288f81bfe3be653890;p=vlc libvlc: Don't raise an exception if there is no vout in set_drawable. --- diff --git a/src/control/media_player.c b/src/control/media_player.c index b2d096faf3..a52fa0cbe6 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 );