diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /third_party/libwebrtc/sdk/objc | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/sdk/objc')
-rw-r--r-- | third_party/libwebrtc/sdk/objc/api/peerconnection/RTCPeerConnectionFactory.mm | 22 | ||||
-rw-r--r-- | third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm | 6 |
2 files changed, 13 insertions, 15 deletions
diff --git a/third_party/libwebrtc/sdk/objc/api/peerconnection/RTCPeerConnectionFactory.mm b/third_party/libwebrtc/sdk/objc/api/peerconnection/RTCPeerConnectionFactory.mm index 62b55543d4..15f9eb9ee4 100644 --- a/third_party/libwebrtc/sdk/objc/api/peerconnection/RTCPeerConnectionFactory.mm +++ b/third_party/libwebrtc/sdk/objc/api/peerconnection/RTCPeerConnectionFactory.mm @@ -32,12 +32,12 @@ #include "api/audio_codecs/builtin_audio_decoder_factory.h" #include "api/audio_codecs/builtin_audio_encoder_factory.h" +#include "api/enable_media.h" #include "api/rtc_event_log/rtc_event_log_factory.h" #include "api/task_queue/default_task_queue_factory.h" #include "api/transport/field_trial_based_config.h" #import "components/video_codec/RTCVideoDecoderFactoryH264.h" #import "components/video_codec/RTCVideoEncoderFactoryH264.h" -#include "media/engine/webrtc_media_engine.h" #include "modules/audio_device/include/audio_device.h" #include "modules/audio_processing/include/audio_processing.h" @@ -195,21 +195,17 @@ dependencies.trials = std::make_unique<webrtc::FieldTrialBasedConfig>(); dependencies.task_queue_factory = webrtc::CreateDefaultTaskQueueFactory(dependencies.trials.get()); - cricket::MediaEngineDependencies media_deps; - media_deps.adm = std::move(audioDeviceModule); - media_deps.task_queue_factory = dependencies.task_queue_factory.get(); - media_deps.audio_encoder_factory = std::move(audioEncoderFactory); - media_deps.audio_decoder_factory = std::move(audioDecoderFactory); - media_deps.video_encoder_factory = std::move(videoEncoderFactory); - media_deps.video_decoder_factory = std::move(videoDecoderFactory); + dependencies.adm = std::move(audioDeviceModule); + dependencies.audio_encoder_factory = std::move(audioEncoderFactory); + dependencies.audio_decoder_factory = std::move(audioDecoderFactory); + dependencies.video_encoder_factory = std::move(videoEncoderFactory); + dependencies.video_decoder_factory = std::move(videoDecoderFactory); if (audioProcessingModule) { - media_deps.audio_processing = std::move(audioProcessingModule); + dependencies.audio_processing = std::move(audioProcessingModule); } else { - media_deps.audio_processing = webrtc::AudioProcessingBuilder().Create(); + dependencies.audio_processing = webrtc::AudioProcessingBuilder().Create(); } - media_deps.trials = dependencies.trials.get(); - dependencies.media_engine = cricket::CreateMediaEngine(std::move(media_deps)); - dependencies.call_factory = webrtc::CreateCallFactory(); + webrtc::EnableMedia(dependencies); dependencies.event_log_factory = std::make_unique<webrtc::RtcEventLogFactory>(dependencies.task_queue_factory.get()); dependencies.network_controller_factory = std::move(networkControllerFactory); diff --git a/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm b/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm index f6b91d5409..641d2ed8c7 100644 --- a/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm +++ b/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm @@ -399,8 +399,10 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false; // Set isActive and decrement activation count on deactivation // whether or not it succeeded. if (!active) { - self.isActive = active; - [self notifyDidSetActive:active]; + if (shouldSetActive) { + self.isActive = active; + [self notifyDidSetActive:active]; + } [self decrementActivationCount]; } RTCLog(@"Number of current activations: %d", _activationCount.load()); |