Commit adea76a6 authored by Max Kellermann's avatar Max Kellermann

decoder_api: fixed shadow warning, rename "wait"

The parameter name "wait" overlaps with the POSIX wait() function. Rename it.
parent e7131b5d
......@@ -137,13 +137,13 @@ size_t decoder_read(struct decoder *decoder,
* one.
*/
static enum decoder_command
need_chunks(struct input_stream *is, bool wait)
need_chunks(struct input_stream *is, bool do_wait)
{
if (dc.command == DECODE_COMMAND_STOP ||
dc.command == DECODE_COMMAND_SEEK)
return dc.command;
if ((is == NULL || input_stream_buffer(is) <= 0) && wait) {
if ((is == NULL || input_stream_buffer(is) <= 0) && do_wait) {
notify_wait(&dc.notify);
notify_signal(&pc.notify);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment