diff --git a/worker/include/RTC/Consumer.hpp b/worker/include/RTC/Consumer.hpp index 1851c929a4..7f0131d1b7 100644 --- a/worker/include/RTC/Consumer.hpp +++ b/worker/include/RTC/Consumer.hpp @@ -143,7 +143,7 @@ namespace RTC virtual void ApplyLayers() = 0; virtual uint32_t GetDesiredBitrate() const = 0; virtual void SendRtpPacket(RTC::RtpPacket* packet, std::shared_ptr& sharedPacket) = 0; - virtual std::vector GetRtpStreams() = 0; + virtual const std::vector& GetRtpStreams() const = 0; virtual void GetRtcp( RTC::RTCP::CompoundPacket* packet, RTC::RtpStreamSend* rtpStream, uint64_t nowMs) = 0; virtual void NeedWorstRemoteFractionLost(uint32_t mappedSsrc, uint8_t& worstRemoteFractionLost) = 0; diff --git a/worker/include/RTC/PipeConsumer.hpp b/worker/include/RTC/PipeConsumer.hpp index cba27bd46e..2250d81ee2 100644 --- a/worker/include/RTC/PipeConsumer.hpp +++ b/worker/include/RTC/PipeConsumer.hpp @@ -31,7 +31,7 @@ namespace RTC uint32_t GetDesiredBitrate() const override; void SendRtpPacket(RTC::RtpPacket* packet, std::shared_ptr& sharedPacket) override; void GetRtcp(RTC::RTCP::CompoundPacket* packet, RTC::RtpStreamSend* rtpStream, uint64_t nowMs) override; - std::vector GetRtpStreams() override + const std::vector& GetRtpStreams() const override { return this->rtpStreams; } diff --git a/worker/include/RTC/SimpleConsumer.hpp b/worker/include/RTC/SimpleConsumer.hpp index 93b67245a8..8e05ac1ef5 100644 --- a/worker/include/RTC/SimpleConsumer.hpp +++ b/worker/include/RTC/SimpleConsumer.hpp @@ -40,7 +40,7 @@ namespace RTC void ApplyLayers() override; uint32_t GetDesiredBitrate() const override; void SendRtpPacket(RTC::RtpPacket* packet, std::shared_ptr& sharedPacket) override; - std::vector GetRtpStreams() override + const std::vector& GetRtpStreams() const override { return this->rtpStreams; } diff --git a/worker/include/RTC/SimulcastConsumer.hpp b/worker/include/RTC/SimulcastConsumer.hpp index beec1f6ccf..7702e2b7b2 100644 --- a/worker/include/RTC/SimulcastConsumer.hpp +++ b/worker/include/RTC/SimulcastConsumer.hpp @@ -57,7 +57,7 @@ namespace RTC uint32_t GetDesiredBitrate() const override; void SendRtpPacket(RTC::RtpPacket* packet, std::shared_ptr& sharedPacket) override; void GetRtcp(RTC::RTCP::CompoundPacket* packet, RTC::RtpStreamSend* rtpStream, uint64_t nowMs) override; - std::vector GetRtpStreams() override + const std::vector& GetRtpStreams() const override { return this->rtpStreams; } diff --git a/worker/include/RTC/SvcConsumer.hpp b/worker/include/RTC/SvcConsumer.hpp index 3df98d9695..d44c902332 100644 --- a/worker/include/RTC/SvcConsumer.hpp +++ b/worker/include/RTC/SvcConsumer.hpp @@ -52,7 +52,7 @@ namespace RTC uint32_t GetDesiredBitrate() const override; void SendRtpPacket(RTC::RtpPacket* packet, std::shared_ptr& sharedPacket) override; void GetRtcp(RTC::RTCP::CompoundPacket* packet, RTC::RtpStreamSend* rtpStream, uint64_t nowMs) override; - std::vector GetRtpStreams() override + const std::vector& GetRtpStreams() const override { return this->rtpStreams; }