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:
Max Kellermann
2008-12-28 19:48:53 +01:00
parent c01aa53e6a
commit 8fe03b8bce
4 changed files with 14 additions and 2 deletions

View File

@@ -514,6 +514,7 @@ static void * player_task(G_GNUC_UNUSED void *arg)
break;
case PLAYER_COMMAND_EXIT:
dc_quit(&pc.notify);
closeAudioDevice();
player_command_finished();
pthread_exit(NULL);