mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-29 05:16:33 +01:00
Change LS_ERROR to LS_WARNING for unsupported decoder formats
There is currently an error reported about unsupported formats for most users when an WebRTC connection is setup. This CL changes the error to a warning. The reason is that some H264 profiles are supported in hardware but not in software. When the decoder is created we will try to create pair of both software and hardware decoders for the union of supported formats. The creation of the software decoder will then fail. There is a small risk that this leads to errors later but only in rare circumstances. Most of the time this log line only confuses consumers as well as developers. Bug: none Change-Id: Ib2119016fa91bc270437a2bcf7892e9fdd7c419c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196645 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32800}
This commit is contained in:
parent
5c4c836ac4
commit
04ed0a0773
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ std::vector<SdpVideoFormat> InternalDecoderFactory::GetSupportedFormats()
|
|||
std::unique_ptr<VideoDecoder> InternalDecoderFactory::CreateVideoDecoder(
|
||||
const SdpVideoFormat& format) {
|
||||
if (!IsFormatSupported(GetSupportedFormats(), format)) {
|
||||
RTC_LOG(LS_ERROR) << "Trying to create decoder for unsupported format";
|
||||
RTC_LOG(LS_WARNING) << "Trying to create decoder for unsupported format. "
|
||||
<< format.ToString();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue