X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fvideo_stream.cpp;h=06acfd2601a43ebe4ff17af8b0f7fffee788fc25;hb=e0cb348ca42ae7057f8f5acee92a23e7eb26075f;hp=4b0336ce3b8384a68673e7a5cf6fd7a0f603e9b2;hpb=0a981d13d1c4dd006ac3a6a2e45691d095990ccc;p=nageru diff --git a/futatabi/video_stream.cpp b/futatabi/video_stream.cpp index 4b0336c..06acfd2 100644 --- a/futatabi/video_stream.cpp +++ b/futatabi/video_stream.cpp @@ -335,6 +335,8 @@ void VideoStream::schedule_original_frame(steady_clock::time_point local_pts, { fprintf(stderr, "output_pts=%" PRId64 " original input_pts=%" PRId64 "\n", output_pts, frame.pts); + // TODO: Write audio if at the right speed. + QueuedFrame qf; qf.local_pts = local_pts; qf.type = QueuedFrame::ORIGINAL; @@ -342,7 +344,7 @@ void VideoStream::schedule_original_frame(steady_clock::time_point local_pts, qf.display_func = move(display_func); qf.queue_spot_holder = move(queue_spot_holder); qf.subtitle = subtitle; - qf.encoded_jpeg.reset(new string(frame_reader.read_frame(frame))); + qf.encoded_jpeg.reset(new string(frame_reader.read_frame(frame, /*read_audio=*/false).video)); lock_guard lock(queue_lock); frame_queue.push_back(move(qf));