aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-03 21:01:49 +0100
committerMax Kellermann <max@duempel.org>2009-11-03 21:01:49 +0100
commit7fd2097a44901a85df51bb989ddfa6d234cee279 (patch)
tree07082e8a86ada0a9bcf5c53e6bb98f7032f46714 /src
parent89893faa19aef5623b8d4ea9e71b346edbd78435 (diff)
downloadmpd-7fd2097a44901a85df51bb989ddfa6d234cee279.tar.gz
mpd-7fd2097a44901a85df51bb989ddfa6d234cee279.tar.xz
mpd-7fd2097a44901a85df51bb989ddfa6d234cee279.zip
decoder_control: don't check command in decoder_is_starting()
Asynchronous decoder startup is gone, and we don't need to check command==DECODE_COMMAND_START anymore.
Diffstat (limited to '')
-rw-r--r--src/decoder_control.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h
index a70adff05..635855e17 100644
--- a/src/decoder_control.h
+++ b/src/decoder_control.h
@@ -137,16 +137,14 @@ decoder_signal(struct decoder_control *dc)
static inline bool
decoder_is_idle(const struct decoder_control *dc)
{
- return (dc->state == DECODE_STATE_STOP ||
- dc->state == DECODE_STATE_ERROR) &&
- dc->command != DECODE_COMMAND_START;
+ return dc->state == DECODE_STATE_STOP ||
+ dc->state == DECODE_STATE_ERROR;
}
static inline bool
decoder_is_starting(const struct decoder_control *dc)
{
- return dc->command == DECODE_COMMAND_START ||
- dc->state == DECODE_STATE_START;
+ return dc->state == DECODE_STATE_START;
}
static inline bool