[vlc-devel] [PATCH 1/2] decoder: don't cancel a non started vout

Steve Lhomme robux4 at ycbcr.xyz
Mon Oct 21 15:12:27 CEST 2019


It will assert from the missing sys->display.

We don't need to cancel a pool since the display is not started, we could never
use the pool anyway.
---
 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 f979fca5e1f..2d8fb57736c 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -870,7 +870,7 @@ static void DecoderThread_AbortPictures( decoder_t *p_dec, bool b_abort )
     struct decoder_owner *p_owner = dec_get_owner( p_dec );
 
     vlc_mutex_lock( &p_owner->lock ); // called in DecoderThread
-    if( p_owner->p_vout != NULL )
+    if( p_owner->p_vout != NULL && p_owner->vout_thread_started)
         vout_Cancel( p_owner->p_vout, b_abort );
     vlc_mutex_unlock( &p_owner->lock );
 }
-- 
2.17.1



More information about the vlc-devel mailing list