summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-02-22 02:05:24 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-11 01:54:44 +0100
commit4ae0b5eb48ed0926d5b45ec9e770701996c07a29 (patch)
tree1e01514134aa9782ecb22de264614d48be1b31a3
parent65a59c57e1235967676bbb8e00e04e852df80f87 (diff)
update for new memory api
-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 6bcb3be9c..bb5764f9e 100644
--- a/gst/gdp/gstgdppay.c
+++ b/gst/gdp/gstgdppay.c
@@ -228,12 +228,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_memory_new_wrapped (0, header, g_free, len, 0, len));
+ 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_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
+ gst_memory_new_wrapped (0, payload, plen, 0, plen, payload, g_free));
return gst_buffer_join (headerbuf, payloadbuf);
@@ -259,7 +259,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_memory_new_wrapped (0, header, g_free, len, 0, len));
+ gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
/* we do not want to lose the ref on the incoming buffer */
gst_buffer_ref (buffer);
@@ -292,13 +292,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_memory_new_wrapped (0, header, g_free, len, 0, len));
+ 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_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
+ gst_memory_new_wrapped (0, payload, plen, 0, plen, payload, g_free));
}
return gst_buffer_join (headerbuf, payloadbuf);