mirror of https://code.videolan.org/videolan/vlc
codec: videotoolbox: do not discard decoder output on drain
This commit is contained in:
parent
45585498ba
commit
5d54525560
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue