Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm

Issue 3009383002: Enhance RTCUIApplicationStatusObserver thread safety. (Closed)
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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];

Powered by Google App Engine
This is Rietveld 408576698