// TODO: Lock to a rational multiple of the frame rate if possible.
double speed = 0.5;
- bool aborted = false;
for (int frameno = 0; ; ++frameno) { // Ends when the clip ends.
double out_pts = out_pts_origin + TIMEBASE * frameno / output_framerate;
steady_clock::time_point next_frame_start =
unique_lock<mutex> lock(queue_state_mu);
playing = false;
}
- if (done_callback != nullptr && !aborted) {
+ if (done_callback != nullptr) {
done_callback();
}
}