Index: webrtc/video/video_decoder.cc |
diff --git a/webrtc/video/video_decoder.cc b/webrtc/video/video_decoder.cc |
index e8dc5f1c296127afff252f1b6c8e6a0c47c69fa4..462b0afdef6766cfc060d021b8260b92d8e239bd 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; |
} |
@@ -131,4 +134,10 @@ int32_t VideoDecoderSoftwareFallbackWrapper::Reset() { |
return decoder_->Reset(); |
} |
+const char* VideoDecoderSoftwareFallbackWrapper::ImplementationName() const { |
+ if (fallback_decoder_) |
+ return fallback_implementation_name_.c_str(); |
+ return decoder_->ImplementationName(); |
+} |
+ |
} // namespace webrtc |