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

Unified Diff: webrtc/api/objc/RTCMediaConstraints.mm

Issue 1644843003: Compile rtc_base_objc and rtc_api_objc for Mac (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update against master Created 4 years, 10 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
« no previous file with comments | « webrtc/api/api_tests.gyp ('k') | webrtc/api/objc/RTCStatsReport.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCMediaConstraints.mm
diff --git a/webrtc/api/objc/RTCMediaConstraints.mm b/webrtc/api/objc/RTCMediaConstraints.mm
index a53a517747f7a2ebcf9fb8f71b36a7ae8f3379bd..4922b2f812f3666a0bd0db19377e6686ca6af3ac 100644
--- a/webrtc/api/objc/RTCMediaConstraints.mm
+++ b/webrtc/api/objc/RTCMediaConstraints.mm
@@ -81,10 +81,10 @@ MediaConstraints::GetOptional() const {
for (NSString *key in constraints) {
NSAssert([key isKindOfClass:[NSString class]],
@"%@ is not an NSString.", key);
- NSAssert([constraints[key] isKindOfClass:[NSString class]],
- @"%@ is not an NSString.", constraints[key]);
+ NSAssert([[constraints objectForKey:key] isKindOfClass:[NSString class]],
+ @"%@ is not an NSString.", [constraints objectForKey:key]);
nativeConstraints.push_back(webrtc::MediaConstraintsInterface::Constraint(
- key.stdString, constraints[key].stdString));
+ key.stdString, [constraints objectForKey:key].stdString));
}
return nativeConstraints;
}
« no previous file with comments | « webrtc/api/api_tests.gyp ('k') | webrtc/api/objc/RTCStatsReport.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698