]> git.sesse.net Git - vlc/commitdiff
media_player: Don't forgot to clear exception.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 18 Jun 2008 06:50:16 +0000 (08:50 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 18 Jun 2008 06:51:33 +0000 (08:51 +0200)
src/control/media_player.c

index 08fb60b729e239908d1c4535dd94c39c7b91c6c2..b2d096faf32007d64b696dcccac4428c75cdf3d7 100644 (file)
@@ -717,7 +717,11 @@ void libvlc_media_player_set_drawable( libvlc_media_player_t *p_mi,
      * because of some creepy drawable type that are not flexible enough
      * (Win32 HWND for instance) */
     p_input_thread = libvlc_get_input_thread( p_mi, p_e );
-    if( !p_input_thread ) return;
+    if( !p_input_thread ) {
+        /* No input, nothing more to do, we are fine */
+        libvlc_exception_clear( p_e );
+        return;
+    }
 
     p_vout = vlc_object_find( p_input_thread, VLC_OBJECT_VOUT, FIND_CHILD );
     if( !p_vout )