Index: webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
index 0fcefeef0271d543c3976aee0c1e9f9dcac5e6f1..6e2b568273de0c86a2553a1357bc97329c20253b 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
@@ -301,6 +301,10 @@ CFStringRef ExtractProfile(const cricket::VideoCodec &codec) { |
_profile = ExtractProfile([codecInfo nativeVideoCodec]); |
LOG(LS_INFO) << "Using profile " << CFStringToString(_profile); |
RTC_CHECK([codecInfo.name isEqualToString:@"H264"]); |
+ |
+#if defined(WEBRTC_IOS) |
+ [RTCUIApplicationStatusObserver prepareForUse]; |
+#endif |
} |
return self; |
} |