The current logic has risks if the encoder queue changes, for example when switching from a hardware encoder to a software encoder, or when switching from two different software implementations. Always using a dedicated task queue simplifies the code and is safer. Bug: chromium:1395308 Change-Id: I0a576ed2f6e892955e0a519567969474d3b99efd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/285882 Commit-Queue: Evan Shrubsole <eshr@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38793}