Fork VCMDecoderDatabase for VideoReceiver.

This is to keep the deprecated VideoReceiver separate from the
implementation used by VideoReceiver2 before updating
VCMDecoderDatabase to have ownership of the registered decoders.

Fixing typo (DataBase->Database) in the name of the remaining class.

Bug: webrtc:14486, webrtc:14497
Change-Id: I5ee755921454b0831b3af6d0161f5b48c7c60540
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276781
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38247}
This commit is contained in:
Tommi
2022-09-29 14:13:15 +02:00
committed by WebRTC LUCI CQ
parent 987cb5aa16
commit 20b3271b61
6 changed files with 198 additions and 23 deletions

View File

@ -23,12 +23,12 @@
namespace webrtc {
class VCMDecoderDataBase {
class VCMDecoderDatabase {
public:
VCMDecoderDataBase();
VCMDecoderDataBase(const VCMDecoderDataBase&) = delete;
VCMDecoderDataBase& operator=(const VCMDecoderDataBase&) = delete;
~VCMDecoderDataBase() = default;
VCMDecoderDatabase();
VCMDecoderDatabase(const VCMDecoderDatabase&) = delete;
VCMDecoderDatabase& operator=(const VCMDecoderDatabase&) = delete;
~VCMDecoderDatabase() = default;
// Returns a pointer to the previously registered decoder or nullptr if none
// was registered for the `payload_type`.