[vlc-commits] decoder: don't reenable pause during decoder deletion

Rémi Denis-Courmont git at videolan.org
Sat Sep 6 21:14:46 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep  6 22:10:06 2014 +0300| [532a6de964752d0121a7e1bbc0e894b748b729d2] | committer: Rémi Denis-Courmont

decoder: don't reenable pause during decoder deletion

This is useless since a274331ee5b95d7e2537255344d5b4d2991a41a3.

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

 src/input/decoder.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index d40c7d3..c90d149 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -329,7 +329,6 @@ void input_DecoderDelete( decoder_t *p_dec )
 
     /* Make sure we aren't paused/waiting/decoding anymore */
     vlc_mutex_lock( &p_owner->lock );
-    const bool b_was_paused = p_owner->b_paused;
     p_owner->b_paused = false;
     p_owner->b_waiting = false;
     p_owner->b_flushing = true;
@@ -338,7 +337,6 @@ void input_DecoderDelete( decoder_t *p_dec )
     vlc_mutex_unlock( &p_owner->lock );
 
     vlc_join( p_owner->thread, NULL );
-    p_owner->b_paused = b_was_paused;
 
     module_unneed( p_dec, p_dec->p_module );
 



More information about the vlc-commits mailing list