[vlc-devel] commit: Directly release the input thread. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 23 21:01:25 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 23 21:01:08 2009 +0200| [15b81850da2b0fc0c2c55cc71b9f1866b32b8b28] | committer: Rémi Duraffort 

Directly release the input thread.

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

 src/control/media_player.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index f0e745d..827220c 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -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 );




More information about the vlc-devel mailing list