)]}'
{
  "commit": "bbc2085d45083ee75786b50bf23d86df20a80050",
  "tree": "22a616222bbc0467b523fdb55a03a4178ffceef4",
  "parents": [
    "63f7a75c2b8d08cddefb9ecc1d6c8f40fd002fa8"
  ],
  "author": {
    "name": "Markus Handell",
    "email": "handellm@webrtc.org",
    "time": "Tue Sep 22 08:26:16 2026"
  },
  "committer": {
    "name": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Sep 22 12:04:33 2026"
  },
  "message": "Inject test adaptation resources at construction\n\nInjectAdaptationConstraint() blocked the worker thread on a task\nposted to the encoder queue, and had an early return that never set\nthe event it was waited on, so a stopped encoder would have hung the\ncaller forever. Both it and InjectAdaptationResource() existed only\nfor VideoStreamEncoderTest, which calls them from its constructor.\n\nPass the resources and constraints to the constructor instead and\nregister them in the init task it already posts. Nothing blocks, and\nthe ordering is stronger than before: the injections used to race\nthat task and worked only because both landed on the same queue in\norder.\n\nBug: webrtc:42222804\nChange-Id: I112df0d254dff6328409b9be71bc92e12a8fa7bf\nReviewed-on: https://webrtc-review.googlesource.com/c/src/+/504421\nReviewed-by: Erik Språng \u003csprang@webrtc.org\u003e\nReviewed-by: Henrik Boström \u003chbos@webrtc.org\u003e\nCommit-Queue: Henrik Boström \u003chbos@webrtc.org\u003e\nCr-Commit-Position: refs/heads/main@{#48662}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "edbea1267a039d1d474484bbcda43412102cef4f",
      "old_mode": 33188,
      "old_path": "video/video_stream_encoder.cc",
      "new_id": "71d98f0d68e2ba97408dc0b768e5a4bb0064a10f",
      "new_mode": 33188,
      "new_path": "video/video_stream_encoder.cc"
    },
    {
      "type": "modify",
      "old_id": "ca4f6a4e40a43f5ff46dae8dbe14943848d379fc",
      "old_mode": 33188,
      "old_path": "video/video_stream_encoder.h",
      "new_id": "a342d1f5d6b88d6f7f1558ec8f5ac8ce67926dfe",
      "new_mode": 33188,
      "new_path": "video/video_stream_encoder.h"
    },
    {
      "type": "modify",
      "old_id": "ade1207363ebf97519afd92e4ccd953909e4c693",
      "old_mode": 33188,
      "old_path": "video/video_stream_encoder_unittest.cc",
      "new_id": "3e5a6a435a5f5e567a9d78fe911a0e7bb8dde8f3",
      "new_mode": 33188,
      "new_path": "video/video_stream_encoder_unittest.cc"
    }
  ]
}
