mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
ext/mpeg2dec/gstmpeg2dec.c: use bufferpools
Original commit message from CVS: * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_alloc_buffer): use bufferpools
This commit is contained in:
parent
f74315d6a4
commit
c846f85243
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-12 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_alloc_buffer):
|
||||
use bufferpools
|
||||
|
||||
2004-07-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* ext/theora/theoradec.c: (gst_theora_dec_class_init),
|
||||
|
|
|
@ -346,7 +346,9 @@ gst_mpeg2dec_alloc_buffer (GstMpeg2dec * mpeg2dec, const mpeg2_info_t * info,
|
|||
const mpeg2_picture_t *picture;
|
||||
|
||||
if (mpeg2dec->format == MPEG2DEC_FORMAT_I422) {
|
||||
outbuf = gst_buffer_new_and_alloc (size * 2);
|
||||
outbuf =
|
||||
gst_pad_alloc_buffer (mpeg2dec->srcpad, GST_BUFFER_OFFSET_NONE,
|
||||
size * 2);
|
||||
|
||||
out = GST_BUFFER_DATA (outbuf);
|
||||
|
||||
|
@ -355,7 +357,9 @@ gst_mpeg2dec_alloc_buffer (GstMpeg2dec * mpeg2dec, const mpeg2_info_t * info,
|
|||
buf[2] = buf[1] + size / 2;
|
||||
|
||||
} else {
|
||||
outbuf = gst_buffer_new_and_alloc ((size * 3) / 2);
|
||||
outbuf =
|
||||
gst_pad_alloc_buffer (mpeg2dec->srcpad, GST_BUFFER_OFFSET_NONE,
|
||||
(size * 3) / 2);
|
||||
|
||||
out = GST_BUFFER_DATA (outbuf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue