summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2010-12-24 09:50:00 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-12-24 14:17:51 +0100
commit29c6a954172c5ffc66b820058c9a64cd76c1a360 (patch)
treec3c57d6c9b4bb14eab50675c38076a6dfaafbdee /gst
parente6d0435a8ed722ba1d61b1c2d56a26c1b6fc5ff8 (diff)
mpegdemux: do not use the pad buffer allocation functions in demuxers
https://bugzilla.gnome.org/show_bug.cgi?id=637931
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index 863547078..166a246c6 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -1616,11 +1616,9 @@ gst_mpegts_stream_parse_private_section (GstMpegTSStream * stream,
goto wrong_crc;
/* just dump this down the pad */
- if (gst_pad_alloc_buffer (stream->pad, 0, datalen, NULL, &buffer) ==
- GST_FLOW_OK) {
- memcpy (buffer->data, data, datalen);
- gst_pad_push (stream->pad, buffer);
- }
+ buffer = gst_buffer_new_and_alloc (datalen);
+ memcpy (buffer->data, data, datalen);
+ gst_pad_push (stream->pad, buffer);
GST_DEBUG_OBJECT (demux, "parsing private section");
return TRUE;