Commit 8e8eb41d authored by Matthew Waters's avatar Matthew Waters
Browse files

webrtcdatachannel: take ref of data so it doesn't disappear

parent 47b69bca
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment