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

Unified Diff: webrtc/base/objc/RTCDispatcher.m

Issue 1782363002: Fix lock behavior on RTCAudioSession. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add log for error Created 4 years, 9 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/base/objc/RTCDispatcher.m
diff --git a/webrtc/base/objc/RTCDispatcher.m b/webrtc/base/objc/RTCDispatcher.m
index 065705a4aea70e368658f4d2e346ef902a6d5d99..3d469c6dab782d48475aa8f5ce4a8ee7235e8bbd 100644
--- a/webrtc/base/objc/RTCDispatcher.m
+++ b/webrtc/base/objc/RTCDispatcher.m
@@ -10,15 +10,20 @@
#import "RTCDispatcher.h"
+static dispatch_queue_t kAudioSessionQueue = nil;
static dispatch_queue_t kCaptureSessionQueue = nil;
@implementation RTCDispatcher {
dispatch_queue_t _captureSessionQueue;
+ dispatch_queue_t _audioSessionQueue;
Chuck 2016/03/11 16:53:22 Are these actually used for anything?
tkchin_webrtc 2016/03/11 17:48:21 lol. Removed, thanks.
}
+ (void)initialize {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
+ kAudioSessionQueue = dispatch_queue_create(
+ "org.webrtc.RTCDispatcherAudioSession",
+ DISPATCH_QUEUE_SERIAL);
kCaptureSessionQueue = dispatch_queue_create(
"org.webrtc.RTCDispatcherCaptureSession",
DISPATCH_QUEUE_SERIAL);
@@ -39,6 +44,8 @@ static dispatch_queue_t kCaptureSessionQueue = nil;
return dispatch_get_main_queue();
case RTCDispatcherTypeCaptureSession:
return kCaptureSessionQueue;
+ case RTCDispatcherTypeAudioSession:
+ return kAudioSessionQueue;
}
}

Powered by Google App Engine
This is Rietveld 408576698