]> git.sesse.net Git - nageru/commitdiff
The video player only ever waited for original frames, never processed; fixed.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 30 Oct 2018 17:09:32 +0000 (18:09 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 30 Oct 2018 17:09:32 +0000 (18:09 +0100)
video_stream.cpp

index e8d119f2a6767e905fd5864fafc6dcc58e10fa9a..82f27315b7f89dcae86e1103ffed9674b0113667 100644 (file)
@@ -392,6 +392,7 @@ void VideoStream::schedule_faded_frame(steady_clock::time_point local_pts, int64
        qf.fence = RefCountedGLsync(GL_SYNC_GPU_COMMANDS_COMPLETE, /*flags=*/0);
        check_error();
        qf.resources = move(resources);
+       qf.local_pts = local_pts;
 
        unique_lock<mutex> lock(queue_lock);
        frame_queue.push_back(move(qf));
@@ -438,6 +439,7 @@ void VideoStream::schedule_interpolated_frame(steady_clock::time_point local_pts
        qf.id = id;
        qf.display_func = move(display_func);
        qf.queue_spot_holder = move(queue_spot_holder);
+       qf.local_pts = local_pts;
 
        check_error();