mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fixed bad time displaying when seeking in the new media player.
This commit is contained in:
@@ -489,6 +489,7 @@ void AudioPlayer::play(const AudioMsgId &audio, int64 position) {
|
||||
onError(audio);
|
||||
}
|
||||
} else {
|
||||
current->playbackState.position = position;
|
||||
current->playbackState.state = fadedStart ? AudioPlayerStarting : AudioPlayerPlaying;
|
||||
current->loading = true;
|
||||
emit loaderOnStart(audio, position);
|
||||
|
@@ -114,7 +114,6 @@ void CoverWidget::handleSeekFinished(float64 progress) {
|
||||
audioPlayer()->seek(qRound(progress * playbackState.duration));
|
||||
}
|
||||
|
||||
updateTimeLabel();
|
||||
if (exists()) {
|
||||
instance()->stopSeeking();
|
||||
}
|
||||
|
Reference in New Issue
Block a user