Skip to content

Commit

Permalink
Seeking backwards a bit if we were stepping
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-odom committed Oct 5, 2019
1 parent 12da5dd commit cfb454a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/AVPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 585,12 @@ void AVPlayer::pause(bool p)
return;

if (!p) {
// TODO: If was stepping, skip our position a little bit behind us.
d->was_stepping = false;
if (d->was_stepping) {
d->was_stepping = false;
// If was stepping, skip our position a little bit behind us.
// This fixes an issue with the audio timer
seek(position() - 100);
}
}

audio()->pause(p);
Expand Down

0 comments on commit cfb454a

Please sign in to comment.