]> git.sesse.net Git - nageru/blobdiff - player.cpp
Add functionality for scrubbing in/out points in the clip list.
[nageru] / player.cpp
index 5d37b28ecbfa84f2defd6c6087949d9798e3d202..1f2d9e50cadbaa2d7938d4dc5ea0cb26c953d133 100644 (file)
@@ -38,7 +38,7 @@ void Player::thread_func()
                steady_clock::time_point origin = steady_clock::now();
                int64_t pts_origin = clip.pts_in;
 
-               int64_t next_pts = pts_origin;
+               int64_t next_pts = pts_origin - 1;  // Make sure we play the frame at clip.pts_in if it exists.
 
                bool aborted = false;
                for ( ;; ) {