From adea76a6edc54c9f3b957d47a54b74c322d54fc8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 Feb 2009 13:33:06 +0100 Subject: decoder_api: fixed shadow warning, rename "wait" The parameter name "wait" overlaps with the POSIX wait() function. Rename it. --- src/decoder_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/decoder_api.c b/src/decoder_api.c index d1e3e0a08..ccb04a2ec 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -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); -- cgit v1.2.3