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:
@ -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
|
||||
|
||||
@ -59,6 +59,7 @@ class SimulcastEncoderAdapter : public VP8Encoder {
|
||||
|
||||
int GetTargetFramerate() override;
|
||||
bool SupportsNativeHandle() const override;
|
||||
const char* ImplementationName() const override;
|
||||
|
||||
private:
|
||||
struct StreamInfo {
|
||||
|
||||
Reference in New Issue
Block a user