From 4ec54daec56cff8b5dec3138621b3d66e47d1ef9 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 11 Jan 2004 22:03:52 +0000 Subject: ext/divx/gstdivxenc.c: remove bogus gst_caps_is_fixed() test Original commit message from CVS: * ext/divx/gstdivxenc.c: remove bogus gst_caps_is_fixed() test * gst/debug/efence.c: (gst_efence_chain), (gst_fenced_buffer_new), (gst_fenced_buffer_default_copy): Fix for rename of buffer private structure members. * gst/effectv/gstwarp.c: (gst_warptv_setup): Don't reset the time value during a resize/renegotiation. * gst/videofilter/gstvideofilter.c: (gst_videofilter_chain): use gst_pad_alloc_buffer(); * sys/v4l/gstv4lmjpegsrc.c: (gst_v4lmjpegsrc_get), (gst_v4lmjpegsrc_buffer_free): Fix for rename of buffer private structure members. * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_get), (gst_v4lsrc_buffer_free): Fix for rename of buffer private structure members. * sys/ximage/ximagesink.c: (gst_ximagesink_chain), (gst_ximagesink_buffer_free), (gst_ximagesink_buffer_alloc): Fix for rename of buffer private structure members. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain), (gst_xvimagesink_buffer_free), (gst_xvimagesink_buffer_alloc): Fix for rename of buffer private structure members. --- gst/videofilter/gstvideofilter.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gst/videofilter/gstvideofilter.c') diff --git a/gst/videofilter/gstvideofilter.c b/gst/videofilter/gstvideofilter.c index 39c40f1b..d26014d9 100644 --- a/gst/videofilter/gstvideofilter.c +++ b/gst/videofilter/gstvideofilter.c @@ -329,11 +329,10 @@ gst_videofilter_chain (GstPad *pad, GstData *_data) size, videofilter->from_buf_size); } - outbuf = gst_buffer_new(); - /* FIXME: handle bufferpools */ - GST_BUFFER_SIZE(outbuf) = videofilter->to_buf_size; - GST_BUFFER_DATA(outbuf) = g_malloc (videofilter->to_buf_size); + outbuf = gst_pad_alloc_buffer(videofilter->srcpad, GST_BUFFER_OFFSET_NONE, + videofilter->to_buf_size); GST_BUFFER_TIMESTAMP(outbuf) = GST_BUFFER_TIMESTAMP(buf); + GST_BUFFER_DURATION(outbuf) = GST_BUFFER_DURATION(buf); g_return_if_fail(videofilter->format); GST_DEBUG ("format %s",videofilter->format->fourcc); -- cgit