summaryrefslogtreecommitdiff
path: root/gst/smooth
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2003-10-08 16:08:19 +0000
committerAndy Wingo <wingo@pobox.com>2003-10-08 16:08:19 +0000
commitc07813ac2ca2a969ac4f46b7f2bcaee731f0ca79 (patch)
tree88f65b715d1fa83677b13286b3681a6096b5dcf2 /gst/smooth
parent69edaac422d50a0e365fae15d354c07c0f5419d4 (diff)
/GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Original commit message from CVS: /GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Diffstat (limited to 'gst/smooth')
-rw-r--r--gst/smooth/gstsmooth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gst/smooth/gstsmooth.c b/gst/smooth/gstsmooth.c
index ec86c99d9..0051ca1dd 100644
--- a/gst/smooth/gstsmooth.c
+++ b/gst/smooth/gstsmooth.c
@@ -77,7 +77,7 @@ GST_PAD_TEMPLATE_FACTORY (smooth_sink_factory,
static void gst_smooth_class_init (GstSmoothClass *klass);
static void gst_smooth_init (GstSmooth *smooth);
-static void gst_smooth_chain (GstPad *pad, GstBuffer *buf);
+static void gst_smooth_chain (GstPad *pad, GstData *_data);
static void smooth_filter (unsigned char* dest, unsigned char* src,
int width, int height, int tolerance, int filtersize);
@@ -218,8 +218,9 @@ smooth_filter (unsigned char* dest, unsigned char* src, int width, int height, i
}
static void
-gst_smooth_chain (GstPad *pad, GstBuffer *buf)
+gst_smooth_chain (GstPad *pad, GstData *_data)
{
+ GstBuffer *buf = GST_BUFFER (_data);
GstSmooth *smooth;
guchar *data;
gulong size;
@@ -233,7 +234,7 @@ gst_smooth_chain (GstPad *pad, GstBuffer *buf)
smooth = GST_SMOOTH (GST_OBJECT_PARENT (pad));
if (!smooth->active) {
- gst_pad_push(smooth->srcpad,buf);
+ gst_pad_push(smooth->srcpad,GST_DATA (buf));
return;
}
@@ -265,7 +266,7 @@ gst_smooth_chain (GstPad *pad, GstBuffer *buf)
gst_buffer_unref (buf);
- gst_pad_push (smooth->srcpad, outbuf);
+ gst_pad_push (smooth->srcpad, GST_DATA (outbuf));
}
static void