[vlc-devel] commit: media_player: Don't forgot to clear exception. (Pierre d'Herbemont )

git version control git at videolan.org
Wed Jun 18 08:49:53 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Jun 18 08:50:16 2008 +0200| [9be4778f5a1662a45f25303e07072868ad3eb502]

media_player: Don't forgot to clear exception.

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

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

diff --git a/src/control/media_player.c b/src/control/media_player.c
index 08fb60b..b2d096f 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -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 )




More information about the vlc-devel mailing list