mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +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 ();
|
||||
plen = gst_dp_header_payload_length (header);
|
||||
gst_buffer_take_memory (payloadbuf,
|
||||
gst_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
|
||||
if (plen && payload != NULL) {
|
||||
gst_buffer_take_memory (payloadbuf,
|
||||
gst_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
|
||||
}
|
||||
|
||||
return gst_buffer_join (headerbuf, payloadbuf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue