mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 10:12:20 +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
1 changed files with 5 additions and 8 deletions
|
@ -288,14 +288,11 @@ static GstFlowReturn
|
||||||
gst_mve_buffer_alloc_for_pad (GstMveDemuxStream * stream,
|
gst_mve_buffer_alloc_for_pad (GstMveDemuxStream * stream,
|
||||||
guint32 size, GstBuffer ** buffer)
|
guint32 size, GstBuffer ** buffer)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret =
|
*buffer = gst_buffer_new_and_alloc (size);
|
||||||
gst_pad_alloc_buffer_and_set_caps (stream->pad, stream->offset,
|
gst_buffer_set_caps (*buffer, stream->caps);
|
||||||
size, stream->caps, buffer);
|
GST_BUFFER_TIMESTAMP (*buffer) = stream->last_ts;
|
||||||
|
GST_BUFFER_OFFSET (*buffer) = stream->offset;
|
||||||
if (ret == GST_FLOW_OK)
|
return GST_FLOW_OK;
|
||||||
GST_BUFFER_TIMESTAMP (*buffer) = stream->last_ts;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
|
|
Loading…
Reference in a new issue