Index: webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc |
diff --git a/webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc b/webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc |
index b7a5141dfd29a9432f9ee8f89a5cd3636f4ec256..07725309bfd92273212773257dd71e8f736be35d 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc |
+++ b/webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc |
@@ -47,7 +47,7 @@ VideoToolboxVideoEncoderFactory::~VideoToolboxVideoEncoderFactory() {} |
VideoEncoder* VideoToolboxVideoEncoderFactory::CreateVideoEncoder( |
const cricket::VideoCodec& codec) { |
#if defined(WEBRTC_IOS) |
- if (IsCodecSupported(supported_codecs_, codec)) { |
+ if (FindMatchingCodec(supported_codecs_, codec)) { |
LOG(LS_INFO) << "Creating HW encoder for " << codec.name; |
return new H264VideoToolboxEncoder(); |
} |
@@ -83,7 +83,7 @@ VideoDecoder* VideoToolboxVideoDecoderFactory::CreateVideoDecoder( |
VideoCodecType type) { |
const auto codec = cricket::VideoCodec(NameFromCodecType(type)); |
#if defined(WEBRTC_IOS) |
- if (IsCodecSupported(supported_codecs_, codec)) { |
+ if (FindMatchingCodec(supported_codecs_, codec)) { |
LOG(LS_INFO) << "Creating HW decoder for " << codec.name; |
return new H264VideoToolboxDecoder(); |
} |