From 8fe03b8bcef9f5a3a822055a3c4ab65cfe1baedb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 28 Dec 2008 19:48:53 +0100 Subject: decoder: terminate decoder thread before MPD cleanup When MPD exits, it should manually free all resources in use, to allow easy memory leak debugging. Make the decoder thread terminate during that. --- src/decoder_control.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/decoder_control.h') diff --git a/src/decoder_control.h b/src/decoder_control.h index e9fa449e6..4fd0f9edc 100644 --- a/src/decoder_control.h +++ b/src/decoder_control.h @@ -49,6 +49,7 @@ struct decoder_control { volatile enum decoder_state state; volatile enum decoder_command command; + bool quit; bool seek_error; bool seekable; volatile double seek_where; @@ -122,4 +123,7 @@ dc_stop(struct notify *notify); bool dc_seek(struct notify *notify, double where); +void +dc_quit(struct notify *notify); + #endif -- cgit v1.2.3