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.
This commit is contained in:
parent
89893faa19
commit
7fd2097a44
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user