Skip to content

Commit

Permalink
fix cue unpause
Browse files Browse the repository at this point in the history
  • Loading branch information
olegantonyan committed Sep 4, 2020
1 parent 9389c41 commit 3feaebd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/playback/mediaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ namespace Playback {
qWarning() << "error starting stream form" << stream.url();
}
}
bool ff = state() == MediaPlayer::StoppedState; // prevent rewing when unpausing
player.play();
if (offset_begin > 0) {
if (ff && offset_begin > 0) {
player.setPosition(offset_begin);
}
}
Expand Down

0 comments on commit 3feaebd

Please sign in to comment.