summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/moz-patch-stack/0086.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/libwebrtc/moz-patch-stack/0086.patch
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/moz-patch-stack/0086.patch')
-rw-r--r--third_party/libwebrtc/moz-patch-stack/0086.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0086.patch b/third_party/libwebrtc/moz-patch-stack/0086.patch
new file mode 100644
index 0000000000..10657e6049
--- /dev/null
+++ b/third_party/libwebrtc/moz-patch-stack/0086.patch
@@ -0,0 +1,66 @@
+From: Byron Campen <docfaraday@gmail.com>
+Date: Thu, 20 Jul 2023 14:24:00 +0000
+Subject: Bug 1838080: Use the current TaskQueue, instead of the current
+ thread, to init this. r=pehrsons,webrtc-reviewers
+
+There are situations where the current thread is not set, but the current
+TaskQueue is (but not vice versa).
+
+Differential Revision: https://phabricator.services.mozilla.com/D180736
+Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/62e71a2f745c4b98d5ee7ce9e6386aa1b657be9b
+---
+ .../rtp_video_stream_receiver_frame_transformer_delegate.cc | 3 +--
+ .../rtp_video_stream_receiver_frame_transformer_delegate.h | 5 ++---
+ video/rtp_video_stream_receiver2.cc | 2 +-
+ 3 files changed, 4 insertions(+), 6 deletions(-)
+
+diff --git a/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.cc b/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.cc
+index ddbd22e34a..6f9aa6ae09 100644
+--- a/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.cc
++++ b/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.cc
+@@ -95,8 +95,7 @@ RtpVideoStreamReceiverFrameTransformerDelegate::
+ RtpVideoFrameReceiver* receiver,
+ Clock* clock,
+ rtc::scoped_refptr<FrameTransformerInterface> frame_transformer,
+- rtc::Thread* network_thread,
+- uint32_t ssrc)
++ TaskQueueBase* network_thread, uint32_t ssrc)
+ : receiver_(receiver),
+ frame_transformer_(std::move(frame_transformer)),
+ network_thread_(network_thread),
+diff --git a/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.h b/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.h
+index 62a42fdddf..20f9a5caa9 100644
+--- a/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.h
++++ b/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.h
+@@ -41,8 +41,7 @@ class RtpVideoStreamReceiverFrameTransformerDelegate
+ RtpVideoFrameReceiver* receiver,
+ Clock* clock,
+ rtc::scoped_refptr<FrameTransformerInterface> frame_transformer,
+- rtc::Thread* network_thread,
+- uint32_t ssrc);
++ TaskQueueBase* network_thread, uint32_t ssrc);
+
+ void Init();
+ void Reset();
+@@ -67,7 +66,7 @@ class RtpVideoStreamReceiverFrameTransformerDelegate
+ RtpVideoFrameReceiver* receiver_ RTC_GUARDED_BY(network_sequence_checker_);
+ rtc::scoped_refptr<FrameTransformerInterface> frame_transformer_
+ RTC_GUARDED_BY(network_sequence_checker_);
+- rtc::Thread* const network_thread_;
++ TaskQueueBase* const network_thread_;
+ const uint32_t ssrc_;
+ Clock* const clock_;
+ };
+diff --git a/video/rtp_video_stream_receiver2.cc b/video/rtp_video_stream_receiver2.cc
+index db0b87c736..c4a021d6c0 100644
+--- a/video/rtp_video_stream_receiver2.cc
++++ b/video/rtp_video_stream_receiver2.cc
+@@ -341,7 +341,7 @@ RtpVideoStreamReceiver2::RtpVideoStreamReceiver2(
+ if (frame_transformer) {
+ frame_transformer_delegate_ =
+ rtc::make_ref_counted<RtpVideoStreamReceiverFrameTransformerDelegate>(
+- this, clock_, std::move(frame_transformer), rtc::Thread::Current(),
++ this, clock_, std::move(frame_transformer), TaskQueueBase::Current(),
+ config_.rtp.remote_ssrc);
+ frame_transformer_delegate_->Init();
+ }