diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:45:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:45:14 +0200 |
commit | e2c8b960de29e4fc45f16d980b9ef370de9951d3 (patch) | |
tree | bbe802c9efd9b677d91c9d7052382af147e5190f /src/decoder_control.c | |
parent | 5e51fa020dcf634d2c5442ed6c5de108420c7574 (diff) | |
download | mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.gz mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.xz mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.zip |
moved code to pc_init(), dc_init()
Diffstat (limited to 'src/decoder_control.c')
-rw-r--r-- | src/decoder_control.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/decoder_control.c b/src/decoder_control.c index 49842b445..a0e3b6143 100644 --- a/src/decoder_control.c +++ b/src/decoder_control.c @@ -20,6 +20,14 @@ struct decoder_control dc; +void dc_init(void) +{ + notify_init(&dc.notify); + dc.state = DECODE_STATE_STOP; + dc.command = DECODE_COMMAND_NONE; + dc.error = DECODE_ERROR_NOERROR; +} + void dc_command_wait(Notify *notify) { while (dc.command != DECODE_COMMAND_NONE) { |