summaryrefslogtreecommitdiff
path: root/ext/webrtc/webrtcdatachannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webrtc/webrtcdatachannel.c')
-rw-r--r--ext/webrtc/webrtcdatachannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/webrtc/webrtcdatachannel.c b/ext/webrtc/webrtcdatachannel.c
index 2f46ee43e..47263e794 100644
--- a/ext/webrtc/webrtcdatachannel.c
+++ b/ext/webrtc/webrtcdatachannel.c
@@ -808,7 +808,7 @@ gst_webrtc_data_channel_send_data (GstWebRTCDataChannel * channel,
}
buffer = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, data, size,
- 0, size, bytes, (GDestroyNotify) g_bytes_unref);
+ 0, size, g_bytes_ref (bytes), (GDestroyNotify) g_bytes_unref);
ppid = DATA_CHANNEL_PPID_WEBRTC_BINARY;
}