aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:45:14 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:45:14 +0200
commite2c8b960de29e4fc45f16d980b9ef370de9951d3 (patch)
treebbe802c9efd9b677d91c9d7052382af147e5190f /src/decoder_control.c
parent5e51fa020dcf634d2c5442ed6c5de108420c7574 (diff)
downloadmpd-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.c8
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) {