X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fmixer.cpp;h=2fdbf645e876d89cc39022a411d75f2e92016ba3;hb=b9a74fdb2aaaec5f2859945f25bff9295da444e1;hp=01f6abede373918a723629b9ccc0d379cd6911bc;hpb=f19b66f60aec0493e4046f304868e4468fcfd375;p=nageru diff --git a/nageru/mixer.cpp b/nageru/mixer.cpp index 01f6abe..2fdbf64 100644 --- a/nageru/mixer.cpp +++ b/nageru/mixer.cpp @@ -277,7 +277,7 @@ void QueueLengthPolicy::unregister_metrics(const vector> &l } void QueueLengthPolicy::update_policy(steady_clock::time_point now, - steady_clock::time_point expected_next_frame, + steady_clock::time_point expected_next_input_frame, int64_t input_frame_duration, int64_t master_frame_duration, double max_input_card_jitter_seconds, @@ -288,7 +288,7 @@ void QueueLengthPolicy::update_policy(steady_clock::time_point now, // Figure out when we can expect the next frame for this card, assuming // worst-case jitter (ie., the frame is maximally late). - double seconds_until_next_frame = max(duration(expected_next_frame - now).count() + max_input_card_jitter_seconds, 0.0); + double seconds_until_next_frame = max(duration(expected_next_input_frame - now).count() + max_input_card_jitter_seconds, 0.0); // How many times are the master card expected to tick in that time? // We assume the master clock has worst-case jitter but not any rate