2
0
Paul-Louis Ageneau 1 жил өмнө
parent
commit
44f5fd8910

+ 2 - 3
include/rtc/pacinghandler.hpp

@@ -19,9 +19,8 @@
 
 
 namespace rtc {
 namespace rtc {
 
 
-// Paced sending of RTP packets. Takes a stream of RTP packets that can an
-// uneven bitrate. It then delivers these packets in a smoother manner by
-// sending a fixed size of them on an interval
+// Paced sending of RTP packets. It takes a stream of RTP packets that can have an uneven bitrate
+// and delivers them in a smoother manner by sending a fixed size of them on an interval
 class RTC_CPP_EXPORT PacingHandler : public MediaHandler {
 class RTC_CPP_EXPORT PacingHandler : public MediaHandler {
 public:
 public:
 	PacingHandler(double bitsPerSecond, std::chrono::milliseconds sendInterval);
 	PacingHandler(double bitsPerSecond, std::chrono::milliseconds sendInterval);

+ 1 - 1
src/pacinghandler.cpp

@@ -18,7 +18,7 @@
 namespace rtc {
 namespace rtc {
 
 
 PacingHandler::PacingHandler(double bitsPerSecond, std::chrono::milliseconds sendInterval)
 PacingHandler::PacingHandler(double bitsPerSecond, std::chrono::milliseconds sendInterval)
-    : mBytesPerSecond(bitsPerSecond / 8), mBudget(0), mSendInterval(sendInterval){};
+    : mBytesPerSecond(bitsPerSecond / 8), mBudget(0.), mSendInterval(sendInterval){};
 
 
 void PacingHandler::schedule(const message_callback &send) {
 void PacingHandler::schedule(const message_callback &send) {
 	if (!mHaveScheduled.exchange(true)) {
 	if (!mHaveScheduled.exchange(true)) {