Fix incorrect use of return

This commit is contained in:
Jonas Kvinge 2021-06-20 02:25:36 +02:00
parent cd37a40bab
commit bee30e572f
1 changed files with 4 additions and 1 deletions

View File

@ -536,7 +536,10 @@ void Player::RestartOrPrevious() {
pause_time_ = QDateTime();
play_offset_nanosec_ = 0;
if (engine_->position_nanosec() < 8 * kNsecPerSec) return Previous();
if (engine_->position_nanosec() < 8 * kNsecPerSec) {
Previous();
return;
}
SeekTo(0);