[vlc-devel] [PATCH 2/2] decoder: drain the vout
Thomas Guillem
thomas at gllm.fr
Wed Mar 15 15:33:31 CET 2017
Wait for the last video frames to be displayed when the decoder is draining.
Ref #18105
---
src/input/decoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 91a6f37774..bd974a2af8 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1539,6 +1539,8 @@ static void *DecoderThread( void *p_data )
* queued to the output at this point. Now drain the output. */
if( p_owner->p_aout != NULL )
aout_DecFlush( p_owner->p_aout, true );
+ if( p_owner->p_vout != NULL )
+ vout_Drain( p_owner->p_vout );
}
vlc_restorecancel( canc );
--
2.11.0
More information about the vlc-devel
mailing list