Index: webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm |
index f657f9c2f12b68b1d1e95adf6370f418fb2655de..b19cb43bd192eb8b21ebd2037207d9e5d6d06da9 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm |
@@ -67,6 +67,16 @@ void decompressionOutputCallback(void *decoder, |
RTCVideoDecoderCallback _callback; |
} |
+- (instancetype)init { |
+ if (self = [super init]) { |
+#if defined(WEBRTC_IOS) |
+ [RTCUIApplicationStatusObserver prepareForUse]; |
+#endif |
+ } |
+ |
+ return self; |
+} |
+ |
- (void)dealloc { |
[self destroyDecompressionSession]; |
[self setVideoFormat:nullptr]; |