mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +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);
|
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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user