Browse Source

Fix comment

Paul-Louis Ageneau 1 year ago
parent
commit
44f5fd8910
2 changed files with 3 additions and 4 deletions
  1. 2 3
      include/rtc/pacinghandler.hpp
  2. 1 1
      src/pacinghandler.cpp

+ 2 - 3
include/rtc/pacinghandler.hpp

@@ -19,9 +19,8 @@
 
 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 {
 public:
 	PacingHandler(double bitsPerSecond, std::chrono::milliseconds sendInterval);

+ 1 - 1
src/pacinghandler.cpp

@@ -18,7 +18,7 @@
 namespace rtc {
 
 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) {
 	if (!mHaveScheduled.exchange(true)) {