From 7fd2097a44901a85df51bb989ddfa6d234cee279 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Nov 2009 21:01:49 +0100 Subject: 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. --- src/decoder_control.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 -- cgit v1.2.3