Fix incorrect use of return
This commit is contained in:
parent
cd37a40bab
commit
bee30e572f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue