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

Unified Diff: talk/examples/objc/AppRTCDemo/ARDSDPUtils.m

Issue 1217473011: AppRTCDemo file logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase Created 5 years, 5 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: talk/examples/objc/AppRTCDemo/ARDSDPUtils.m
diff --git a/talk/examples/objc/AppRTCDemo/ARDSDPUtils.m b/talk/examples/objc/AppRTCDemo/ARDSDPUtils.m
index 157d6fc1f61c79ec3d38edcbc593cfe58d97a842..481b6ce18f349e1b191c8a4a6080607ad3d67594 100644
--- a/talk/examples/objc/AppRTCDemo/ARDSDPUtils.m
+++ b/talk/examples/objc/AppRTCDemo/ARDSDPUtils.m
@@ -27,6 +27,7 @@
#import "ARDSDPUtils.h"
+#import "ARDLogging.h"
#import "RTCSessionDescription.h"
@implementation ARDSDPUtils
@@ -42,7 +43,7 @@
NSMutableArray *lines =
[NSMutableArray arrayWithArray:
[sdpString componentsSeparatedByString:lineSeparator]];
- int mLineIndex = -1;
+ NSInteger mLineIndex = -1;
NSString *codecRtpMap = nil;
// a=rtpmap:<payload type> <encoding name>/<clock rate>
// [/<encoding parameters>]
@@ -70,11 +71,11 @@
}
}
if (mLineIndex == -1) {
- NSLog(@"No m=video line, so can't prefer %@", codec);
+ ARDLog(@"No m=video line, so can't prefer %@", codec);
return description;
}
if (!codecRtpMap) {
- NSLog(@"No rtpmap for %@", codec);
+ ARDLog(@"No rtpmap for %@", codec);
return description;
}
NSArray *origMLineParts =
@@ -98,7 +99,7 @@
[lines replaceObjectAtIndex:mLineIndex
withObject:newMLine];
} else {
- NSLog(@"Wrong SDP media description format: %@", lines[mLineIndex]);
+ ARDLog(@"Wrong SDP media description format: %@", lines[mLineIndex]);
}
NSString *mangledSdpString = [lines componentsJoinedByString:lineSeparator];
return [[RTCSessionDescription alloc] initWithType:description.type

Powered by Google App Engine
This is Rietveld 408576698