]> git.sesse.net Git - vlc/blobdiff - src/control/media_player.c
macosx: Ask to send a mail to our bugreport ML if a crash log is detected.
[vlc] / src / control / media_player.c
index 08fb60b729e239908d1c4535dd94c39c7b91c6c2..a52fa0cbe69ca11f39561aa3ca0cf3e998ed8615 100644 (file)
@@ -717,12 +717,14 @@ 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 )
-        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 );