Browse Source

Rename PliResponder => PliHandler

Though I'm still not quite sure about the name since it's not exactly pli specific
Arda Cinar 1 year ago
parent
commit
4d228e855b
4 changed files with 8 additions and 8 deletions
  1. 2 2
      CMakeLists.txt
  2. 2 2
      include/rtc/plihandler.hpp
  3. 1 1
      include/rtc/rtc.hpp
  4. 3 3
      src/plihandler.cpp

+ 2 - 2
CMakeLists.txt

@@ -92,7 +92,7 @@ set(LIBDATACHANNEL_SOURCES
 	${CMAKE_CURRENT_SOURCE_DIR}/src/rtcpnackresponder.cpp
 	${CMAKE_CURRENT_SOURCE_DIR}/src/rtp.cpp
 	${CMAKE_CURRENT_SOURCE_DIR}/src/capi.cpp
-	${CMAKE_CURRENT_SOURCE_DIR}/src/pliresponder.cpp
+	${CMAKE_CURRENT_SOURCE_DIR}/src/plihandler.cpp
 )
 
 set(LIBDATACHANNEL_HEADERS
@@ -133,7 +133,7 @@ set(LIBDATACHANNEL_HEADERS
 	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/mediahandlerrootelement.hpp
 	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/rtcpnackresponder.hpp
 	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/utils.hpp
-	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/pliresponder.hpp
+	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/plihandler.hpp
 )
 
 set(LIBDATACHANNEL_IMPL_SOURCES

+ 2 - 2
include/rtc/pliresponder.hpp → include/rtc/plihandler.hpp

@@ -18,13 +18,13 @@ namespace rtc {
 
 /// Responds to PLI and FIR messages sent by the receiver. The sender should respond to these
 /// messages by sending an intra. 
-class RTC_CPP_EXPORT PliResponder final : public MediaHandlerElement {
+class RTC_CPP_EXPORT PliHandler final : public MediaHandlerElement {
     std::function<void(void)> onPli;
 
 public:
 	/// Constructs the PLIResponder object to notify whenever a new intra frame is requested
 	/// @param onPli The callback that gets called whenever an intra frame is requested by the receiver
-    PliResponder(std::function<void(void)> onPli);
+    PliHandler(std::function<void(void)> onPli);
     ChainedIncomingControlProduct processIncomingControlMessage(message_ptr) override;
 };
 

+ 1 - 1
include/rtc/rtc.hpp

@@ -33,7 +33,7 @@
 #include "rtcpreceivingsession.hpp"
 #include "rtcpsrreporter.hpp"
 
-#include "pliresponder.hpp"
+#include "plihandler.hpp"
 
 // Opus/AAC/h264/h265/AV1 streaming
 #include "aacrtppacketizer.hpp"

+ 3 - 3
src/pliresponder.cpp → src/plihandler.cpp

@@ -6,13 +6,13 @@
  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  */
 
-#include "pliresponder.hpp"
+#include "plihandler.hpp"
 
 #if RTC_ENABLE_MEDIA
 
 namespace rtc {
 
-ChainedIncomingControlProduct PliResponder::processIncomingControlMessage(message_ptr message) {
+ChainedIncomingControlProduct PliHandler::processIncomingControlMessage(message_ptr message) {
 	size_t offset = 0;
 
 	while ((sizeof(RtcpHeader) + offset) <= message->size()) {
@@ -37,7 +37,7 @@ ChainedIncomingControlProduct PliResponder::processIncomingControlMessage(messag
 	return { message, std::nullopt };
 }
 
-PliResponder::PliResponder(std::function<void(void)> onPli) : onPli(onPli) { }
+PliHandler::PliHandler(std::function<void(void)> onPli) : onPli(onPli) { }
 
 }