summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-30 18:12:39 +0200
committerTim-Philipp Müller <tim@centricular.net>2012-09-11 01:54:45 +0100
commitf12af88f4ae8a52b7dfdee507a6e7c300f398f48 (patch)
treee9e019212dbbbee9e88671f5ccdc3d19ea85e937
parente817295aefa4d3fbefa1df38c2c38b74798e2f6c (diff)
update for buffer api change
-rw-r--r--gst/gdp/gstgdppay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index 40a88b325..aab3f85a9 100644
--- a/gst/gdp/gstgdppay.c
+++ b/gst/gdp/gstgdppay.c
@@ -227,12 +227,12 @@ gst_gdp_buffer_from_caps (GstGDPPay * this, GstCaps * caps)
GST_LOG_OBJECT (this, "creating GDP header and payload buffer from caps");
headerbuf = gst_buffer_new ();
- gst_buffer_take_memory (headerbuf, -1,
+ gst_buffer_append_memory (headerbuf,
gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
payloadbuf = gst_buffer_new ();
plen = gst_dp_header_payload_length (header);
- gst_buffer_take_memory (payloadbuf, -1,
+ gst_buffer_append_memory (payloadbuf,
gst_memory_new_wrapped (0, payload, plen, 0, plen, payload, g_free));
return gst_buffer_append (headerbuf, payloadbuf);
@@ -258,7 +258,7 @@ gst_gdp_pay_buffer_from_buffer (GstGDPPay * this, GstBuffer * buffer)
GST_LOG_OBJECT (this, "creating GDP header and payload buffer from buffer");
headerbuf = gst_buffer_new ();
- gst_buffer_take_memory (headerbuf, -1,
+ gst_buffer_append_memory (headerbuf,
gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
/* we do not want to lose the ref on the incoming buffer */
@@ -291,13 +291,13 @@ gst_gdp_buffer_from_event (GstGDPPay * this, GstEvent * event)
GST_LOG_OBJECT (this, "creating GDP header and payload buffer from event");
headerbuf = gst_buffer_new ();
- gst_buffer_take_memory (headerbuf, -1,
+ gst_buffer_append_memory (headerbuf,
gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
payloadbuf = gst_buffer_new ();
plen = gst_dp_header_payload_length (header);
if (plen && payload != NULL) {
- gst_buffer_take_memory (payloadbuf, -1,
+ gst_buffer_append_memory (payloadbuf,
gst_memory_new_wrapped (0, payload, plen, 0, plen, payload, g_free));
}