]> git.sesse.net Git - nageru/commitdiff
Clarify a parameter name to update_policy().
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 30 Aug 2020 13:45:07 +0000 (15:45 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sat, 12 Dec 2020 13:55:41 +0000 (14:55 +0100)
nageru/mixer.cpp
nageru/queue_length_policy.h

index 01f6abede373918a723629b9ccc0d379cd6911bc..2fdbf645e876d89cc39022a411d75f2e92016ba3 100644 (file)
@@ -277,7 +277,7 @@ void QueueLengthPolicy::unregister_metrics(const vector<pair<string, string>> &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<double>(expected_next_frame - now).count() + max_input_card_jitter_seconds, 0.0);
+       double seconds_until_next_frame = max(duration<double>(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
index 27259b4c54bb517c83557d277517134f3e301868..faf6537cec3603154e1d7c5d0add79192a304195 100644 (file)
@@ -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,