Fix fallback implementation name
The fallback implementation currently returns "...(fallback from
unknown)" since ImplemenationName() is deprecated. Fix this by
using GetDecoderInfo() to determine the implementation name.
Bug: webrtc:12271
Change-Id: Ifa1d97678cd1bf05d9b5a10b73da23c4d54a1e05
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/257901
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Johannes Kron <kron@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36440}
diff --git a/api/video_codecs/video_decoder_software_fallback_wrapper.cc b/api/video_codecs/video_decoder_software_fallback_wrapper.cc
index 6484616..cf6f823 100644
--- a/api/video_codecs/video_decoder_software_fallback_wrapper.cc
+++ b/api/video_codecs/video_decoder_software_fallback_wrapper.cc
@@ -83,8 +83,9 @@
hw_decoder_(std::move(hw_decoder)),
fallback_decoder_(std::move(sw_fallback_decoder)),
fallback_implementation_name_(
- std::string(fallback_decoder_->ImplementationName()) +
- " (fallback from: " + hw_decoder_->ImplementationName() + ")"),
+ fallback_decoder_->GetDecoderInfo().implementation_name +
+ " (fallback from: " +
+ hw_decoder_->GetDecoderInfo().implementation_name + ")"),
callback_(nullptr),
hw_decoded_frames_since_last_fallback_(0),
hw_consequtive_generic_errors_(0) {}