mirror of https://github.com/procxx/kepka.git
Fixed bad time displaying when seeking in the new media player.
This commit is contained in:
parent
5d37517eac
commit
325e28f3a8
|
@ -489,6 +489,7 @@ void AudioPlayer::play(const AudioMsgId &audio, int64 position) {
|
||||||
onError(audio);
|
onError(audio);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
current->playbackState.position = position;
|
||||||
current->playbackState.state = fadedStart ? AudioPlayerStarting : AudioPlayerPlaying;
|
current->playbackState.state = fadedStart ? AudioPlayerStarting : AudioPlayerPlaying;
|
||||||
current->loading = true;
|
current->loading = true;
|
||||||
emit loaderOnStart(audio, position);
|
emit loaderOnStart(audio, position);
|
||||||
|
|
|
@ -114,7 +114,6 @@ void CoverWidget::handleSeekFinished(float64 progress) {
|
||||||
audioPlayer()->seek(qRound(progress * playbackState.duration));
|
audioPlayer()->seek(qRound(progress * playbackState.duration));
|
||||||
}
|
}
|
||||||
|
|
||||||
updateTimeLabel();
|
|
||||||
if (exists()) {
|
if (exists()) {
|
||||||
instance()->stopSeeking();
|
instance()->stopSeeking();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue