Add ImplementationName to SimulcastEncoderAdapter.

BUG=webrtc:4897
R=stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11170}
This commit is contained in:
pbos
2016-01-07 08:03:05 -08:00
committed by Commit bot
parent 01f364ef06
commit ecd21b481f
2 changed files with 8 additions and 0 deletions

View File

@ -496,4 +496,11 @@ bool SimulcastEncoderAdapter::SupportsNativeHandle() const {
return streaminfos_[0].encoder->SupportsNativeHandle();
}
const char* SimulcastEncoderAdapter::ImplementationName() const {
// We should not be calling this method before streaminfos_ are configured.
RTC_DCHECK(!streaminfos_.empty());
// TODO(pbos): Support multiple implementation names for different encoders.
return streaminfos_[0].encoder->ImplementationName();
}
} // namespace webrtc

View File

@ -59,6 +59,7 @@ class SimulcastEncoderAdapter : public VP8Encoder {
int GetTargetFramerate() override;
bool SupportsNativeHandle() const override;
const char* ImplementationName() const override;
private:
struct StreamInfo {