mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
webrtcdatachannel: take ref of data so it doesn't disappear
This commit is contained in:
parent
47b69bca12
commit
8e8eb41ddf
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ gst_webrtc_data_channel_send_data (GstWebRTCDataChannel * channel,
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, data, size,
|
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;
|
ppid = DATA_CHANNEL_PPID_WEBRTC_BINARY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue