Define methods inside namespace instead of using namespace

This commit is contained in:
Filip Klembara
2020-12-14 09:32:03 +01:00
parent e23d0723d1
commit 735cb538f7
8 changed files with 33 additions and 20 deletions

View File

@ -20,7 +20,7 @@
#include "opuspacketizationhandler.hpp"
using namespace rtc;
namespace rtc {
OpusPacketizationHandler::OpusPacketizationHandler(std::shared_ptr<OpusRTPPacketizer> packetizer): RtcpHandler(), RTCPSenderReportable(packetizer->rtpConfig), packetizer(packetizer) {
senderReportOutgoingCallback = [this](message_ptr msg) {
@ -43,4 +43,6 @@ message_ptr OpusPacketizationHandler::outgoing(message_ptr ptr) {
return ptr;
}
} // namespace
#endif /* RTC_ENABLE_MEDIA */