Remove VIDEOCODEC_* from engine_configurations.h.

Removes index-based codec fetching from the VCM and overall cleans up
the code.

BUG=webrtc:1695
R=mflodman@webrtc.org

Review URL: https://codereview.webrtc.org/1425613004 .

Cr-Commit-Position: refs/heads/master@{#10770}
This commit is contained in:
Peter Boström
2015-11-24 13:55:55 +01:00
parent 4f2152e328
commit 92f8dbde77
8 changed files with 19 additions and 158 deletions

View File

@ -309,22 +309,9 @@ class VideoCodingModuleImpl : public VideoCodingModule {
};
} // namespace
uint8_t VideoCodingModule::NumberOfCodecs() {
return VCMCodecDataBase::NumberOfCodecs();
}
int32_t VideoCodingModule::Codec(uint8_t listId, VideoCodec* codec) {
if (codec == NULL) {
return VCM_PARAMETER_ERROR;
}
return VCMCodecDataBase::Codec(listId, codec) ? 0 : -1;
}
int32_t VideoCodingModule::Codec(VideoCodecType codecType, VideoCodec* codec) {
if (codec == NULL) {
return VCM_PARAMETER_ERROR;
}
return VCMCodecDataBase::Codec(codecType, codec) ? 0 : -1;
VCMCodecDataBase::Codec(codecType, codec);
return 0;
}
VideoCodingModule* VideoCodingModule::Create(