codec: videotoolbox: do not discard decoder output on drain

This commit is contained in:
Francois Cartegnie 2023-02-09 22:05:33 +01:00 committed by Jean-Baptiste Kempf
parent 45585498ba
commit 5d54525560
1 changed files with 1 additions and 1 deletions

View File

@ -1781,7 +1781,7 @@ static void Drain(decoder_t *p_dec, bool flush)
/* draining: return last pictures of the reordered queue */
vlc_mutex_lock(&p_sys->lock);
p_sys->b_discard_decoder_output = true;
p_sys->b_discard_decoder_output = flush;
vlc_mutex_unlock(&p_sys->lock);
if (p_sys->session && p_sys->decoder_state == STATE_DECODER_STARTED)