X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=reorderer.h;h=622083e0563da0f968161e98654f144cc2666fd1;hb=0d7a8406547587b7b1adad9374b4f4985f49dd84;hp=f58a9327673ac1850c67b8e5f4b91ae5d72eb1f4;hpb=1bacf4bb3d9dbd9f07e33b5676f5a1be43cd83a5;p=greproxy diff --git a/reorderer.h b/reorderer.h index f58a932..622083e 100644 --- a/reorderer.h +++ b/reorderer.h @@ -28,12 +28,14 @@ class Reorderer : public Sender { public: Reorderer(Sender* sender); void send_packet(uint16_t proto, const std::string& data, int seq); + void possibly_adjust_tv(timeval *tv); private: void check_ts_discontinuity(uint16_t proto, const std::string &data, bool silence); Sender* sender; int last_seq; + timeval last_sent_packet; std::priority_queue, std::greater> packet_buffer; std::map ccs;