mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
bufferlist: fixes for new API
This commit is contained in:
parent
dd3cba7982
commit
b3da9ca972
1 changed files with 4 additions and 2 deletions
|
@ -300,8 +300,10 @@ gst_gdp_buffer_from_event (GstGDPPay * this, GstEvent * event)
|
||||||
|
|
||||||
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,
|
if (plen && payload != NULL) {
|
||||||
gst_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
|
gst_buffer_take_memory (payloadbuf,
|
||||||
|
gst_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
|
||||||
|
}
|
||||||
|
|
||||||
return gst_buffer_join (headerbuf, payloadbuf);
|
return gst_buffer_join (headerbuf, payloadbuf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue