Commit f5ce13df authored by Andy Wingo Wingo's avatar Andy Wingo Wingo

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.
parent af15987c
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>
......
......@@ -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)
......
......@@ -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,
......
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment