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

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


It will assert on the missing sys->display.
---
 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 2d8fb57736c..8e452f4d02f 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1552,7 +1552,7 @@ static void DecoderThread_Flush( struct decoder_owner *p_owner )
     }
     else if( p_dec->fmt_out.i_cat == VIDEO_ES )
     {
-        if( p_owner->p_vout )
+        if( p_owner->p_vout && p_owner->vout_thread_started )
             vout_FlushAll( p_owner->p_vout );
     }
     else if( p_dec->fmt_out.i_cat == SPU_ES )
-- 
2.17.1



More information about the vlc-devel mailing list