diff options
author | Max Kellermann <max@duempel.org> | 2009-02-19 13:33:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-19 13:33:06 +0100 |
commit | adea76a6edc54c9f3b957d47a54b74c322d54fc8 (patch) | |
tree | 2681ef44628e437bb5d21c6addeb43698ff9fbd8 /src/decoder | |
parent | e7131b5da256c3d9472e3e3fdb826ae14da13188 (diff) | |
download | mpd-adea76a6edc54c9f3b957d47a54b74c322d54fc8.tar.gz mpd-adea76a6edc54c9f3b957d47a54b74c322d54fc8.tar.xz mpd-adea76a6edc54c9f3b957d47a54b74c322d54fc8.zip |
decoder_api: fixed shadow warning, rename "wait"
The parameter name "wait" overlaps with the POSIX wait() function.
Rename it.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |