Index: webrtc/video/video_decoder.cc |
diff --git a/webrtc/video/video_decoder.cc b/webrtc/video/video_decoder.cc |
index 2a0151d750f59abbe86aab5051ab9ca9613b8577..d699175274d54630d14003b613a4651edace018a 100644 |
--- a/webrtc/video/video_decoder.cc |
+++ b/webrtc/video/video_decoder.cc |
@@ -76,6 +76,9 @@ bool VideoDecoderSoftwareFallbackWrapper::InitFallbackDecoder() { |
} |
if (callback_ != nullptr) |
fallback_decoder_->RegisterDecodeCompleteCallback(callback_); |
+ fallback_implementation_name_ = |
+ std::string(fallback_decoder_->ImplementationName()) + |
+ " (fallback from: " + decoder_->ImplementationName() + ")"; |
return true; |
} |
@@ -137,4 +140,10 @@ bool VideoDecoderSoftwareFallbackWrapper::PrefersLateDecoding() const { |
return decoder_->PrefersLateDecoding(); |
} |
+const char* VideoDecoderSoftwareFallbackWrapper::ImplementationName() const { |
+ if (fallback_decoder_) |
+ return fallback_implementation_name_.c_str(); |
+ return decoder_->ImplementationName(); |
+} |
+ |
} // namespace webrtc |