aboutsummaryrefslogtreecommitdiff
path: root/pc/rtp_receiver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pc/rtp_receiver.cc')
-rw-r--r--pc/rtp_receiver.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/pc/rtp_receiver.cc b/pc/rtp_receiver.cc
index 694a8215a6..2444c9b60d 100644
--- a/pc/rtp_receiver.cc
+++ b/pc/rtp_receiver.cc
@@ -15,8 +15,8 @@
#include <utility>
#include <vector>
-#include "api/media_stream_proxy.h"
#include "pc/media_stream.h"
+#include "pc/media_stream_proxy.h"
#include "rtc_base/location.h"
namespace webrtc {
@@ -39,20 +39,4 @@ RtpReceiverInternal::CreateStreamsFromIds(std::vector<std::string> stream_ids) {
return streams;
}
-// Attempt to attach the frame decryptor to the current media channel on the
-// correct worker thread only if both the media channel exists and a ssrc has
-// been allocated to the stream.
-void RtpReceiverInternal::MaybeAttachFrameDecryptorToMediaChannel(
- const absl::optional<uint32_t>& ssrc,
- rtc::Thread* worker_thread,
- rtc::scoped_refptr<webrtc::FrameDecryptorInterface> frame_decryptor,
- cricket::MediaChannel* media_channel,
- bool stopped) {
- if (media_channel && frame_decryptor && ssrc.has_value() && !stopped) {
- worker_thread->Invoke<void>(RTC_FROM_HERE, [&] {
- media_channel->SetFrameDecryptor(*ssrc, frame_decryptor);
- });
- }
-}
-
} // namespace webrtc