From 98c2f0b1a22f89dc971472702b3ac4e080183e48 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 22 Jun 2008 11:15:13 +0200 Subject: client: Fix funny song durations Don't show time if the player has not initialized our data yet. --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') 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 * -- cgit v1.2.3