Files
Michael Froman a1e796bc69 Bug 1952339 - Vendor libwebrtc from c896e3a5b5
Upstream commit: https://webrtc.googlesource.com/src/+/c896e3a5b59e0169e5bc6fcf3dee9dd4a9834b8e
    Cleanup implemenation of AudioState SetRecording/SetPlayout vs. Add/Remove {Send/Recv}stream

    So that they behave in the most obvious ways:
    Set{Recording/Playout} = TRUE
      - Enables {Recording/Playout} is there are {Send/Recv} streams
      - Set state variable

    Set{Recording/Plaout} = FALSE
      - Disable {Recording/Playout}
      - Set state variable

    Add {Send/Recv} stream
      - Enables {Recording/Playout} if state variable is TRUE
      - Otherwise does nothing

    Remove {Send/Recv} stream
      - Disable {Recording/Playout} if last stream
      - Otherwise does nothing

    ---

    Before this patch the behavior was hard to non obvious,
    e.g SetRecording(false) followed by SetRecording(true)
    did not work (same for playout).


    BUG=b/397376626

    Change-Id: I530497d4a46ad73334fcb3d73f4b87264bd18486
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/378740
    Reviewed-by: Jakob Ivarsson‎ <jakobi@webrtc.org>
    Commit-Queue: Jonas Oreland <jonaso@webrtc.org>
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#44025}

Differential Revision: https://phabricator.services.mozilla.com/D244036
2025-03-07 18:17:20 -06:00

41 lines
1.2 KiB
Diff

From: Andreas Pehrson <apehrson@mozilla.com>
Date: Tue, 28 Jan 2025 21:45:00 +0000
Subject: Bug 1938047 - Link adapted_video_track_source.cc and generate webrtc
moz.build files. r=ng,webrtc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D234863
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/b6dd815fc9d2df718a1b48b96f58f99c0cfb7e19
---
media/BUILD.gn | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/media/BUILD.gn b/media/BUILD.gn
index b32e6aba0d..80127aad2b 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -53,11 +53,6 @@ rtc_library("rtc_media_base") {
"base/video_broadcaster.h", # Used downstream
"base/video_common.h", # Used downstream
]
- if (build_with_mozilla) {
- sources -= [
- "base/adapted_video_track_source.h",
- ]
- }
deps = [
":adapted_video_track_source",
":codec",
@@ -137,12 +132,6 @@ rtc_library("adapted_video_track_source") {
"base/adapted_video_track_source.cc",
"base/adapted_video_track_source.h",
]
- if (build_with_mozilla) {
- sources -= [
- "base/adapted_video_track_source.cc",
- "base/adapted_video_track_source.h",
- ]
- }
deps = [
":video_adapter",
":video_broadcaster",