)]}'
{
  "commit": "e429887d22fd5f9c5910f0a50391e6046371a5eb",
  "tree": "534ff42fe08de5a348ead26411b0646cf2efb183",
  "parents": [
    "ea1fce97e610d7c0323a01faf271506af96b6c01"
  ],
  "author": {
    "name": "Tommi",
    "email": "tommi@webrtc.org",
    "time": "Thu Mar 12 11:00:51 2026"
  },
  "committer": {
    "name": "WebRTC LUCI CQ",
    "email": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri Mar 13 10:44:12 2026"
  },
  "message": "Add encoder switch request callback to VideoMediaSendChannel\n\nIntroduce a callback mechanism to intercept and handle encoder switch\nrequests within the video media engine. This makes it so that codec\nswitch/fallback requests first go through the the RtpTransceiver on the\nsignaling thread. That is consistent with other parameter related\nchanges and allows the transceiver to update the sender object(s) before\nthe codec change is applied.\n\nSpecifically, the changes include:\n* Define EncoderSwitchRequestCallback and EncoderSwitchRequestAction\n  in VideoMediaSendChannelInterface.\n* Updating WebRtcVideoSendChannel to optionally use the callback\n  instead of posting directly to the worker thread when an encoder\n  switch is requested.\n* Implementing GetEncoderSwitchRequestCallback in RtpTransceiver\n  to ensure that when a switch occurs, cached RTP parameters on the\n  signaling thread are cleared before the switch action is executed\n  on the worker thread.\n* Updating RtpSender to support clearing cached parameters via\n  std::optional.\n* Adding RTC_DCHECK to SafeTask and SafeInvocable to catch if\n  the provided safety flag is invalid, early.\n\nBug: b/478050997\nChange-Id: Id81a219a0f3dab6a167248c21513723504fa6e79\nReviewed-on: https://webrtc-review.googlesource.com/c/src/+/454700\nReviewed-by: Harald Alvestrand \u003chta@webrtc.org\u003e\nReviewed-by: Sameer Vijaykar \u003csamvi@google.com\u003e\nCommit-Queue: Tomas Gunnarsson \u003ctommi@webrtc.org\u003e\nCr-Commit-Position: refs/heads/main@{#47148}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "875976eede4509833a280f2b157ec2bb29fb55f2",
      "old_mode": 33188,
      "old_path": "api/task_queue/pending_task_safety_flag.h",
      "new_id": "a3c3cbd02e64bbd4140cb20eac19b70c6141e69c",
      "new_mode": 33188,
      "new_path": "api/task_queue/pending_task_safety_flag.h"
    },
    {
      "type": "modify",
      "old_id": "a406b2a36cf30c4e742c3e835543c16e870d9881",
      "old_mode": 33188,
      "old_path": "media/base/fake_media_engine.cc",
      "new_id": "cad3c587ed02444b734682c19323001c8bbb1a22",
      "new_mode": 33188,
      "new_path": "media/base/fake_media_engine.cc"
    },
    {
      "type": "modify",
      "old_id": "6cd6e666416bc18085827d1dc6dac6e2f7374ad4",
      "old_mode": 33188,
      "old_path": "media/base/fake_media_engine.h",
      "new_id": "4e5e43a5e30dc0a6936520f8ad12b0951bea834b",
      "new_mode": 33188,
      "new_path": "media/base/fake_media_engine.h"
    },
    {
      "type": "modify",
      "old_id": "93693ec74006bdbd52547e3d5c8df3f7724c6f76",
      "old_mode": 33188,
      "old_path": "media/base/media_channel.h",
      "new_id": "cdc19280cc5d4ba15b43520bfdf9a0111bfd3fb0",
      "new_mode": 33188,
      "new_path": "media/base/media_channel.h"
    },
    {
      "type": "modify",
      "old_id": "52da64db52f919ed579652e641522d499d87065c",
      "old_mode": 33188,
      "old_path": "media/base/media_engine.cc",
      "new_id": "78bb62af9ba3dd14a63d46ef552f8e7989b572b7",
      "new_mode": 33188,
      "new_path": "media/base/media_engine.cc"
    },
    {
      "type": "modify",
      "old_id": "0ac3277d500d054585baf51192b9aba17ae17b3a",
      "old_mode": 33188,
      "old_path": "media/base/media_engine.h",
      "new_id": "c85db96653c8ac558e1a613e77f2db1e9219586f",
      "new_mode": 33188,
      "new_path": "media/base/media_engine.h"
    },
    {
      "type": "modify",
      "old_id": "bb776670c9ba75fb83002b02e879eea581e44ca0",
      "old_mode": 33188,
      "old_path": "media/engine/webrtc_video_engine.cc",
      "new_id": "91f2c9b33307e23eb7c4e86478dcf56de1feea7e",
      "new_mode": 33188,
      "new_path": "media/engine/webrtc_video_engine.cc"
    },
    {
      "type": "modify",
      "old_id": "e6b4b23bdb618c7b1e67c9aed09dbd0eadaad894",
      "old_mode": 33188,
      "old_path": "media/engine/webrtc_video_engine.h",
      "new_id": "b28211a41f48091122a742c5b7126bd747e38496",
      "new_mode": 33188,
      "new_path": "media/engine/webrtc_video_engine.h"
    },
    {
      "type": "modify",
      "old_id": "d6f9d3872e73a838bc9112a8d7aeb980540d365b",
      "old_mode": 33188,
      "old_path": "media/engine/webrtc_video_engine_unittest.cc",
      "new_id": "fdd105de7187123e5171e6c2360eb7990f0cc4a2",
      "new_mode": 33188,
      "new_path": "media/engine/webrtc_video_engine_unittest.cc"
    },
    {
      "type": "modify",
      "old_id": "ca3b131fb3d47379ea6a895dbcb7839e0b58f7e8",
      "old_mode": 33188,
      "old_path": "pc/rtp_sender.cc",
      "new_id": "3a4e6b778fd7159fec680a45377c561a19bac53a",
      "new_mode": 33188,
      "new_path": "pc/rtp_sender.cc"
    },
    {
      "type": "modify",
      "old_id": "dc9591b0e2a588cbd128d0c658bb14818f713a77",
      "old_mode": 33188,
      "old_path": "pc/rtp_sender.h",
      "new_id": "848db55281e5a0adef0de591b939bb635eb47eca",
      "new_mode": 33188,
      "new_path": "pc/rtp_sender.h"
    },
    {
      "type": "modify",
      "old_id": "0701dca7813b41b1a1b27a7138f697326ba16329",
      "old_mode": 33188,
      "old_path": "pc/rtp_transceiver.cc",
      "new_id": "a36eab46cfda0304a7459fc66d7641c3e24bc305",
      "new_mode": 33188,
      "new_path": "pc/rtp_transceiver.cc"
    },
    {
      "type": "modify",
      "old_id": "cad5276f6b223e44f62eb95edb9a10ad85845487",
      "old_mode": 33188,
      "old_path": "pc/rtp_transceiver.h",
      "new_id": "81e1855c123ef1bdd7c57102ed7aca6c137f2041",
      "new_mode": 33188,
      "new_path": "pc/rtp_transceiver.h"
    },
    {
      "type": "modify",
      "old_id": "6d14a12cef93b3c900801aaf520975133414c404",
      "old_mode": 33188,
      "old_path": "pc/test/mock_rtp_sender_internal.h",
      "new_id": "eeba6fac6fc928a933f0397aa53ae79eaffdfdbd",
      "new_mode": 33188,
      "new_path": "pc/test/mock_rtp_sender_internal.h"
    }
  ]
}
