mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fixed a bug where seeking while paused would not update the internal
playback state to "Playing", even though playback has resumed.
This commit is contained in:
parent
0b091a160a
commit
74e49b8356
@ -171,6 +171,10 @@ void CrossfadeTransport::SetPosition(double seconds) {
|
||||
}
|
||||
}
|
||||
|
||||
if (this->state == PlaybackPaused) {
|
||||
SetPlaybackState(PlaybackPlaying);
|
||||
}
|
||||
|
||||
if (this->active.player) {
|
||||
this->TimeChanged(seconds);
|
||||
}
|
||||
|
@ -237,6 +237,10 @@ void GaplessTransport::SetPosition(double seconds) {
|
||||
}
|
||||
}
|
||||
|
||||
if (this->state == PlaybackPaused) {
|
||||
SetPlaybackState(PlaybackPlaying);
|
||||
}
|
||||
|
||||
if (this->activePlayer) {
|
||||
this->TimeChanged(seconds);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user