summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a9efb9c..6580afb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -368,7 +368,8 @@ int main (int argc, char **argv) {
} /* end poll */
/* show time */
- if (player.finishedPlayback == 0) {
+ if (player.finishedPlayback == 0 &&
+ player.mode >= SAMPLESIZE_INITIALIZED) {
/* FIXME: is this calculation correct? */
/* one frame length: T = 1/f */
float songLength = 1.0 / (float) player.samplerate *