[vlc-devel] [RFC PATCH] decoder: fix input_DecoderWait not waiting for new data
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.
More information about the vlc-devel