From 310900e4be52d11388792d776d9f6b89380bbecd Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 7 Mar 2015 16:20:26 +0100 Subject: player: Ignore volume change before playback started Fixes issue #508. --- src/player.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 0363e59..5c60e59 100644 --- a/src/player.h +++ b/src/player.h @@ -49,9 +49,13 @@ typedef struct { pthread_cond_t pauseCond; enum { - PLAYER_DEAD = 0, /* thread is not running */ - PLAYER_STARTING, /* thread is starting */ + /* not running */ + PLAYER_DEAD = 0, + /* running, but not ready to play music yet */ + PLAYER_WAITING, + /* currently playing a song */ PLAYER_PLAYING, + /* finished playing a song */ PLAYER_FINISHED, } mode; -- cgit v1.2.3