[vlc-commits] decoder: document in which thread decoder_AbortPictures() is called

Steve Lhomme git at videolan.org
Thu Sep 12 15:57:18 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep  4 14:32:04 2019 +0200| [0fa2bd90f7b748fada2b8666020f4174a64cdc41] | committer: Steve Lhomme

decoder: document in which thread decoder_AbortPictures() is called

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

 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 909cf5a39b..3bc13fb93f 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -771,7 +771,7 @@ void decoder_AbortPictures( decoder_t *p_dec, bool b_abort )
 {
     struct decoder_owner *p_owner = dec_get_owner( p_dec );
 
-    vlc_mutex_lock( &p_owner->lock );
+    vlc_mutex_lock( &p_owner->lock ); // called in DecoderThread
     if( p_owner->p_vout != NULL )
         vout_Cancel( p_owner->p_vout, b_abort );
     vlc_mutex_unlock( &p_owner->lock );



More information about the vlc-commits mailing list