From a0272c2d615e4579e8efb767cc6c28302b2c92cd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Sep 2008 07:14:11 +0200 Subject: notify: added notify_deinit() Destroy the mutex when it is not used anymore. --- src/decoder_control.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/decoder_control.c') diff --git a/src/decoder_control.c b/src/decoder_control.c index a0e3b614..58c4e75e 100644 --- a/src/decoder_control.c +++ b/src/decoder_control.c @@ -28,6 +28,11 @@ void dc_init(void) dc.error = DECODE_ERROR_NOERROR; } +void dc_deinit(void) +{ + notify_deinit(&dc.notify); +} + void dc_command_wait(Notify *notify) { while (dc.command != DECODE_COMMAND_NONE) { -- cgit v1.2.3