]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Add a switch to print video latency.
[nageru] / mixer.cpp
index ff9c77f49f213fd80ef268a4590b2deac89e9528..0a7ecc21a070012e65a55c8e9e51f6f436641244 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -511,6 +511,7 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode,
                        new_frame.interlaced = video_format.interlaced;
                        new_frame.upload_func = upload_func;
                        new_frame.dropped_frames = dropped_frames;
+                       new_frame.received_timestamp = video_frame.received_timestamp;  // Ignore the audio timestamp.
                        card->new_frames.push(move(new_frame));
                        card->new_frames_changed.notify_all();
                }