ext/ffmpeg/gstffmpegdec.c: Use gst_pad_alloc_buffer().
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 16 Apr 2005 14:56:08 +0000 (14:56 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 16 Apr 2005 14:56:08 +0000 (14:56 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame):
Use gst_pad_alloc_buffer().

ChangeLog
ext/ffmpeg/gstffmpegdec.c

index 0ab89ba..97c407e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame):
+         Use gst_pad_alloc_buffer().
+
 2005-04-14  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
        * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_handle_event):
index 70ffae1..634bb5b 100644 (file)
@@ -645,7 +645,8 @@ gst_ffmpegdec_frame (GstFFMpegDec * ffmpegdec,
             ffmpegdec->context->width, ffmpegdec->context->height);
 
         ffmpegdec->waiting_for_key = FALSE;
-        outbuf = gst_buffer_new_and_alloc (fsize);
+        outbuf = gst_pad_alloc_buffer (ffmpegdec->srcpad,
+            GST_BUFFER_OFFSET_NONE, fsize);
 
         /* original ffmpeg code does not handle odd sizes correctly.
          * This patched up version does */