From e2c8b960de29e4fc45f16d980b9ef370de9951d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:45:14 +0200 Subject: moved code to pc_init(), dc_init() --- src/decoder_control.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/decoder_control.c') 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) { -- cgit v1.2.3