X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=nageru%2Fqueue_length_policy.h;h=329eb82983ac15d038e3d5953d4998f274cb4eac;hb=91398c6aaab0f999090821577240b94f7bcd6d9d;hp=faf6537cec3603154e1d7c5d0add79192a304195;hpb=cd1b6b6b8dd3d4d6f52d917cec3e5a152f87e822;p=nageru diff --git a/nageru/queue_length_policy.h b/nageru/queue_length_policy.h index faf6537..329eb82 100644 --- a/nageru/queue_length_policy.h +++ b/nageru/queue_length_policy.h @@ -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; }