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

Unified Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h

Issue 3001183002: Make a friendlier RTCVideoCodecInfo initializer. (Closed)
Patch Set: Rebase Created 3 years, 4 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/Headers/WebRTC/RTCVideoCodec.h
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h
index c18fa783cf5db9f95ad1e61be0efa68e2bf3cb71..657ec0ca6a86279fa56ea2733944e61053aca2ff 100644
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h
@@ -100,9 +100,11 @@ typedef NS_ENUM(NSUInteger, RTCVideoCodecMode) {
RTC_EXPORT
@interface RTCVideoCodecInfo : NSObject
-- (instancetype)initWithPayload:(NSInteger)payload
- name:(NSString *)name
- parameters:(NSDictionary<NSString *, NSString *> *)parameters;
+- (instancetype)init NS_UNAVAILABLE;
+
+- (instancetype)initWithName:(NSString *)name
+ parameters:(nullable NSDictionary<NSString *, NSString *> *)parameters
+ NS_DESIGNATED_INITIALIZER;
@property(nonatomic, readonly) NSInteger payload;
@property(nonatomic, readonly) NSString *name;

Powered by Google App Engine
This is Rietveld 408576698