| Index: talk/app/webrtc/objc/RTCDataChannel.mm
|
| diff --git a/talk/app/webrtc/objc/RTCDataChannel.mm b/talk/app/webrtc/objc/RTCDataChannel.mm
|
| index 74ac9170b81efba725eeb544f7ea204a57d81523..00d51b10eeac6009edfa534915a5a2192ba7c005 100644
|
| --- a/talk/app/webrtc/objc/RTCDataChannel.mm
|
| +++ b/talk/app/webrtc/objc/RTCDataChannel.mm
|
| @@ -152,8 +152,8 @@
|
| - (instancetype)initWithData:(NSData*)data isBinary:(BOOL)isBinary {
|
| NSAssert(data, @"data cannot be nil");
|
| if (self = [super init]) {
|
| - rtc::CopyOnWriteBuffer buffer(
|
| - reinterpret_cast<const uint8_t*>([data bytes]), [data length]);
|
| + rtc::Buffer buffer(reinterpret_cast<const uint8_t*>([data bytes]),
|
| + [data length]);
|
| _dataBuffer.reset(new webrtc::DataBuffer(buffer, isBinary));
|
| }
|
| return self;
|
|
|