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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user