]> git.sesse.net Git - vlc/commitdiff
libvlc: Don't raise an exception if there is no vout in set_drawable.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 19 Jul 2008 10:56:53 +0000 (12:56 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 19 Jul 2008 10:57:20 +0000 (12:57 +0200)
src/control/media_player.c

index b2d096faf32007d64b696dcccac4428c75cdf3d7..a52fa0cbe69ca11f39561aa3ca0cf3e998ed8615 100644 (file)
@@ -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 );