summaryrefslogtreecommitdiff
path: root/ext/sctp/gstsctpenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sctp/gstsctpenc.c')
-rw-r--r--ext/sctp/gstsctpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sctp/gstsctpenc.c b/ext/sctp/gstsctpenc.c
index e420fe0c8..71b0f08b0 100644
--- a/ext/sctp/gstsctpenc.c
+++ b/ext/sctp/gstsctpenc.c
@@ -896,7 +896,7 @@ on_sctp_packet_out (GstSctpAssociation * _association, const guint8 * buf,
GST_DEBUG_OBJECT (self, "Received output packet of size %" G_GSIZE_FORMAT,
length);
- gstbuf = gst_buffer_new_wrapped (g_memdup (buf, length), length);
+ gstbuf = gst_buffer_new_copy (buf, length);
item = g_new0 (GstDataQueueItem, 1);
item->object = GST_MINI_OBJECT (gstbuf);