mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
update for buffer api change
This commit is contained in:
parent
e817295aef
commit
f12af88f4a
1 changed files with 5 additions and 5 deletions
|
@ -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");
|
GST_LOG_OBJECT (this, "creating GDP header and payload buffer from caps");
|
||||||
headerbuf = gst_buffer_new ();
|
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));
|
gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
|
||||||
|
|
||||||
payloadbuf = gst_buffer_new ();
|
payloadbuf = gst_buffer_new ();
|
||||||
plen = gst_dp_header_payload_length (header);
|
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));
|
gst_memory_new_wrapped (0, payload, plen, 0, plen, payload, g_free));
|
||||||
|
|
||||||
return gst_buffer_append (headerbuf, payloadbuf);
|
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");
|
GST_LOG_OBJECT (this, "creating GDP header and payload buffer from buffer");
|
||||||
headerbuf = gst_buffer_new ();
|
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));
|
gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
|
||||||
|
|
||||||
/* we do not want to lose the ref on the incoming buffer */
|
/* 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");
|
GST_LOG_OBJECT (this, "creating GDP header and payload buffer from event");
|
||||||
headerbuf = gst_buffer_new ();
|
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));
|
gst_memory_new_wrapped (0, header, len, 0, len, header, g_free));
|
||||||
|
|
||||||
payloadbuf = gst_buffer_new ();
|
payloadbuf = gst_buffer_new ();
|
||||||
plen = gst_dp_header_payload_length (header);
|
plen = gst_dp_header_payload_length (header);
|
||||||
if (plen && payload != NULL) {
|
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));
|
gst_memory_new_wrapped (0, payload, plen, 0, plen, payload, g_free));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue