mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
mpegdemux: do not use the pad buffer allocation functions in demuxers
https://bugzilla.gnome.org/show_bug.cgi?id=637931
This commit is contained in:
parent
e6d0435a8e
commit
29c6a95417
1 changed files with 3 additions and 5 deletions
|
@ -1616,11 +1616,9 @@ gst_mpegts_stream_parse_private_section (GstMpegTSStream * stream,
|
||||||
goto wrong_crc;
|
goto wrong_crc;
|
||||||
|
|
||||||
/* just dump this down the pad */
|
/* just dump this down the pad */
|
||||||
if (gst_pad_alloc_buffer (stream->pad, 0, datalen, NULL, &buffer) ==
|
buffer = gst_buffer_new_and_alloc (datalen);
|
||||||
GST_FLOW_OK) {
|
|
||||||
memcpy (buffer->data, data, datalen);
|
memcpy (buffer->data, data, datalen);
|
||||||
gst_pad_push (stream->pad, buffer);
|
gst_pad_push (stream->pad, buffer);
|
||||||
}
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (demux, "parsing private section");
|
GST_DEBUG_OBJECT (demux, "parsing private section");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue