Index: webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm |
index 9d4f2b8e0aadc237202d09cefcc3edcbcf62e5d6..d126f8442cdbf2c41ec8b9bcd7eb0ffbe0af6754 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm |
@@ -103,10 +103,9 @@ id<RTCVideoDecoderFactory> ObjCVideoDecoderFactory::wrapped_decoder_factory() co |
return decoder_factory_; |
} |
-VideoDecoder *ObjCVideoDecoderFactory::CreateVideoDecoder(VideoCodecType type) { |
- const char *codec_name = CodecTypeToPayloadString(type); |
- |
- NSString *codecName = [NSString stringWithUTF8String:codec_name]; |
+VideoDecoder *ObjCVideoDecoderFactory::CreateVideoDecoderWithParams( |
+ const cricket::VideoCodec &codec, cricket::VideoDecoderParams params) { |
+ NSString *codecName = [NSString stringWithUTF8String:codec.name.c_str()]; |
for (RTCVideoCodecInfo *codecInfo in decoder_factory_.supportedCodecs) { |
if ([codecName isEqualToString:codecInfo.name]) { |
id<RTCVideoDecoder> decoder = [decoder_factory_ createDecoder:codecInfo]; |