summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-04-18 19:57:12 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-04-18 19:57:12 +0200
commit274324aab47c51d6c07ace5e219d196077c3e5d1 (patch)
tree8288f27d2302a3836865c5b818eaad1f20aa46b5 /src/main.c
parentcc229aa68f13ecce55cfbc1cc032cc4d67c85b08 (diff)
downloadpianobar-274324aab47c51d6c07ace5e219d196077c3e5d1.tar.gz
pianobar-274324aab47c51d6c07ace5e219d196077c3e5d1.tar.bz2
pianobar-274324aab47c51d6c07ace5e219d196077c3e5d1.zip
player: Fix state-machine
Song timer was shown without song playing.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index eeb4279..2e9203c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -388,7 +388,7 @@ static void BarMainLoop (BarApp_t *app) {
BarMainHandleUserInput (app);
/* show time */
- if (app->player.mode < PLAYER_FINISHED) {
+ if (app->player.mode == PLAYER_PLAYING) {
BarMainPrintTime (app);
}
}