Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7fd2097a
Commit
7fd2097a
authored
Nov 03, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
decoder_control.h
src/decoder_control.h
+3
-5
No files found.
src/decoder_control.h
View file @
7fd2097a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment