mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
mve: do not use the pad buffer allocation functions in demuxers
https://bugzilla.gnome.org/show_bug.cgi?id=637929
This commit is contained in:
parent
29c6a95417
commit
4422cca1d3
|
@ -288,14 +288,11 @@ static GstFlowReturn
|
|||
gst_mve_buffer_alloc_for_pad (GstMveDemuxStream * stream,
|
||||
guint32 size, GstBuffer ** buffer)
|
||||
{
|
||||
GstFlowReturn ret =
|
||||
gst_pad_alloc_buffer_and_set_caps (stream->pad, stream->offset,
|
||||
size, stream->caps, buffer);
|
||||
|
||||
if (ret == GST_FLOW_OK)
|
||||
*buffer = gst_buffer_new_and_alloc (size);
|
||||
gst_buffer_set_caps (*buffer, stream->caps);
|
||||
GST_BUFFER_TIMESTAMP (*buffer) = stream->last_ts;
|
||||
|
||||
return ret;
|
||||
GST_BUFFER_OFFSET (*buffer) = stream->offset;
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
Loading…
Reference in a new issue