[vlc-devel] [PATCH] decoder: drop audio block and picture during flushing

Zhao Zhili quinkblack at foxmail.com
Tue Jan 2 11:12:06 CET 2018



On 2018年01月02日 18:07, Rémi Denis-Courmont wrote:
> On mardi 2 janvier 2018 17:43:04 EET Zhao Zhili wrote:
>> If input_DecoderStartWait() is executed before DecoderThread() do flushing,
>> an old picture can be treated as the first picture.
> This does not make sense, AFAICT.
>
> Flushing and draining concern the previous frames, not the following ones.
>

Oh, the patch won't work since p_owner->flushing can be changed after check.
But the first picture should be the picture after flushing, isn't is? 
And all pictures
after flushing flag is set should be discarded, it's not the case now.




More information about the vlc-devel mailing list