status: keep track of elapsed time separately from status

updating elapsed time on a separate rate causes too many problems.
this time it was current song position updating at the wrong time.
This commit is contained in:
Andrzej Rybczak
2014-09-05 22:21:28 +02:00
parent 0b4d7e203b
commit 166242210f
4 changed files with 20 additions and 10 deletions

View File

@@ -2681,7 +2681,7 @@ void seek()
Progressbar::lock();
Statusbar::lock();
unsigned songpos = Status::get().elapsedTime();
unsigned songpos = Status::elapsedTime();
auto t = Timer;
int old_timeout = wFooter->getTimeout();