From: Steinar H. Gunderson Date: Sun, 30 Aug 2020 13:45:07 +0000 (+0200) Subject: Clarify a parameter name to update_policy(). X-Git-Tag: 2.0.2~16 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=b9a74fdb2aaaec5f2859945f25bff9295da444e1 Clarify a parameter name to update_policy(). --- 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 diff --git a/nageru/queue_length_policy.h b/nageru/queue_length_policy.h index 27259b4..faf6537 100644 --- a/nageru/queue_length_policy.h +++ b/nageru/queue_length_policy.h @@ -88,7 +88,7 @@ public: // Call after picking out a frame, so 0 means starvation. // Note that the policy has no memory; everything is given in as parameters. void update_policy(std::chrono::steady_clock::time_point now, - std::chrono::steady_clock::time_point expected_next_frame, + std::chrono::steady_clock::time_point expected_next_input_frame, int64_t input_frame_duration, int64_t master_frame_duration, double max_input_card_jitter_seconds,