]> git.sesse.net Git - nageru/commitdiff
Fix an oversight in JitterHistory::clear().
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 30 Aug 2020 21:01:46 +0000 (23:01 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sat, 12 Dec 2020 13:55:42 +0000 (14:55 +0100)
nageru/queue_length_policy.h

index faf6537cec3603154e1d7c5d0add79192a304195..329eb82983ac15d038e3d5953d4998f274cb4eac 100644 (file)
@@ -35,6 +35,7 @@ public:
        void clear() {
                history.clear();
                orders.clear();
+               expected_timestamp = std::chrono::steady_clock::time_point::min();
        }
        void frame_arrived(std::chrono::steady_clock::time_point now, int64_t frame_duration, size_t dropped_frames);
        std::chrono::steady_clock::time_point get_expected_next_frame() const { return expected_timestamp; }