]> git.sesse.net Git - vlc/commitdiff
Directly release the input thread.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 23 Jul 2009 19:01:08 +0000 (21:01 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 23 Jul 2009 19:01:08 +0000 (21:01 +0200)
src/control/media_player.c

index f0e745d0131cc10fd0f2d05e0f74fb4a86038c20..827220c99440017fca5e9d97fd41a9e294d6ab7a 100644 (file)
@@ -393,14 +393,8 @@ static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
     var_DelCallback( p_mi->p_libvlc_instance->p_libvlc_int,
                      "vout-snapshottaken", SnapshotTakenCallback, p_mi );
 
-    libvlc_exception_init( &p_e );
-    p_input_thread = libvlc_get_input_thread( p_mi, &p_e );
-
-    if( libvlc_exception_raised( &p_e ) )
-        /* no need to worry about no input thread */
-        libvlc_exception_clear( &p_e );
-    else
-        release_input_thread( p_mi, true );
+    /* Realease the input thread */
+    release_input_thread( p_mi, true );
 
     libvlc_event_manager_release( p_mi->p_event_manager );
     libvlc_media_release( p_mi->p_md );