From d1a4a59a95672102d96b97288f81bfe3be653890 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 19 Jul 2008 12:56:53 +0200 Subject: [PATCH] libvlc: Don't raise an exception if there is no vout in set_drawable. --- src/control/media_player.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ); -- 2.39.2