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}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
ba1b56adf6
commit
96dbc60704
@ -83,8 +83,9 @@ VideoDecoderSoftwareFallbackWrapper::VideoDecoderSoftwareFallbackWrapper(
|
||||
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) {}
|
||||
|
Reference in New Issue
Block a user