ext/ffmpeg/: Update for alloc_buffer changes.

Original commit message from CVS:
2005-12-05  Andy Wingo  <wingo@pobox.com>

* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_get_buffer),
(gst_ffmpegdec_frame):
* ext/ffmpeg/gstffmpegdeinterlace.c: (gst_ffmpegdeinterlace_chain):
* ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_chain): Update for
alloc_buffer changes.
This commit is contained in:
Andy Wingo 2005-12-05 13:04:39 +00:00
parent af15987c4f
commit f5ce13df63
4 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2005-12-05 Andy Wingo <wingo@pobox.com>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_get_buffer),
(gst_ffmpegdec_frame):
* ext/ffmpeg/gstffmpegdeinterlace.c: (gst_ffmpegdeinterlace_chain):
* ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_chain): Update for
alloc_buffer changes.
=== release 0.9.7 ===
2005-12-01 <thomas (at) apestaart (dot) org>

View file

@ -581,7 +581,7 @@ gst_ffmpegdec_get_buffer (AVCodecContext * context, AVFrame * picture)
return avcodec_default_get_buffer (context, picture);
}
if (gst_pad_alloc_buffer (ffmpegdec->srcpad, GST_BUFFER_OFFSET_NONE,
if (gst_pad_alloc_buffer_and_set_caps (ffmpegdec->srcpad, GST_BUFFER_OFFSET_NONE,
bufsize, GST_PAD_CAPS (ffmpegdec->srcpad), &buf) != GST_FLOW_OK)
return -1;
ffmpegdec->last_buffer = buf;
@ -881,7 +881,7 @@ gst_ffmpegdec_frame (GstFFMpegDec * ffmpegdec,
return -1;
if ((*ret =
gst_pad_alloc_buffer (ffmpegdec->srcpad,
gst_pad_alloc_buffer_and_set_caps (ffmpegdec->srcpad,
GST_BUFFER_OFFSET_NONE, fsize,
GST_PAD_CAPS (ffmpegdec->srcpad),
&outbuf)) != GST_FLOW_OK)

View file

@ -284,7 +284,7 @@ gst_ffmpegdeinterlace_chain (GstPad * pad, GstData * data)
return;
}
outbuf = gst_pad_alloc_buffer (deinterlace->srcpad,
outbuf = gst_pad_alloc_buffer_and_set_caps (deinterlace->srcpad,
GST_BUFFER_OFFSET_NONE, deinterlace->to_size);
gst_ffmpeg_avpicture_fill (&deinterlace->from_frame,

View file

@ -367,7 +367,7 @@ gst_ffmpegscale_chain (GstPad * pad, GstData * data)
return ;
}
outbuf = gst_pad_alloc_buffer (scale->srcpad, GST_BUFFER_OFFSET_NONE, scale->to_size);
outbuf = gst_pad_alloc_buffer_and_set_caps (scale->srcpad, GST_BUFFER_OFFSET_NONE, scale->to_size);
gst_ffmpeg_avpicture_fill (&scale->from_frame,
GST_BUFFER_DATA (inbuf),