The decoder thread is responsible for resetting dc->command after a command was executed. As a consequence, we can assume that dc->command is already NONE after decoder_stop(). ---
src/player_thread.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/player_thread.c b/src/player_thread.c index 52f0bea..761e0fb 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -35,7 +35,6 @@ static void quitDecode(void) { dc_stop(&pc.notify); pc.state = PLAYER_STATE_STOP; - dc.command = DECODE_COMMAND_NONE; pc.command = PLAYER_COMMAND_NONE; wakeup_main_task(); } ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team