summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-03-07 16:20:26 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-03-07 16:20:26 +0100
commit310900e4be52d11388792d776d9f6b89380bbecd (patch)
treed4dc1b3d91043b0e8afd73cb9459ba0288d608da /src/player.h
parent1cd5c5ec77ea43088982a439b58499be87c62087 (diff)
downloadpianobar-windows-310900e4be52d11388792d776d9f6b89380bbecd.tar.gz
pianobar-windows-310900e4be52d11388792d776d9f6b89380bbecd.tar.bz2
pianobar-windows-310900e4be52d11388792d776d9f6b89380bbecd.zip
player: Ignore volume change before playback started
Fixes issue #508.
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h8
1 files changed, 6 insertions, 2 deletions
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;