[vlc-devel] [RFC PATCH] decoder: fix input_DecoderWait not waiting for new data

Rémi Denis-Courmont remi at remlab.net
Tue Jul 19 17:42:33 CEST 2016


Le 2016-07-19 16:58, Thomas Guillem a écrit :
> When an output data was played just after input_DecoderStartWait(),
> b_has_data was immediately set to true. Consequently, 
> input_DecoderWait() returned
> immediately (since it waited for an old output data).

AFAICT, that is the expected behaviour.

> This could cause the input thread to stop waiting for the decoder
> while it didn't start to process any input data.

That can always happen because of deadlock prevention: we can reach a 
point where the input queue is empty, and there is no output.

Fixing it essentially brings the deadlock back.

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list