From 4422cca1d3f98fcc68895e9a051f38dc22d4f7d7 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 24 Dec 2010 10:15:46 +0000 Subject: [PATCH] mve: do not use the pad buffer allocation functions in demuxers https://bugzilla.gnome.org/show_bug.cgi?id=637929 --- gst/mve/gstmvedemux.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gst/mve/gstmvedemux.c b/gst/mve/gstmvedemux.c index e60d880205..a101a9059d 100644 --- a/gst/mve/gstmvedemux.c +++ b/gst/mve/gstmvedemux.c @@ -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) - GST_BUFFER_TIMESTAMP (*buffer) = stream->last_ts; - - return ret; + *buffer = gst_buffer_new_and_alloc (size); + gst_buffer_set_caps (*buffer, stream->caps); + GST_BUFFER_TIMESTAMP (*buffer) = stream->last_ts; + GST_BUFFER_OFFSET (*buffer) = stream->offset; + return GST_FLOW_OK; } static GstFlowReturn