Commit 7fd2097a authored by Max Kellermann's avatar Max Kellermann

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.
parent 89893faa
......@@ -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
......
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