summaryrefslogtreecommitdiffstats
path: root/gst/median
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2003-10-08 16:08:18 +0000
committerAndy Wingo <wingo@pobox.com>2003-10-08 16:08:18 +0000
commitf2d5cae8daade402e9d74a829d2b87283167aaa7 (patch)
treecbb13b82d43fa41ffaf6c93973e80c2f620ebf8e /gst/median
parent9246e543319c072c52fffa51259a2cf927c8dd43 (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/median')
-rw-r--r--gst/median/gstmedian.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gst/median/gstmedian.c b/gst/median/gstmedian.c
index 3b146b4d..a71a0093 100644
--- a/gst/median/gstmedian.c
+++ b/gst/median/gstmedian.c
@@ -81,7 +81,7 @@ static void gst_median_init (GstMedian *median);
static void median_5 (unsigned char *src, unsigned char *dest, int height, int width);
static void median_9 (unsigned char *src, unsigned char *dest, int height, int width);
-static void gst_median_chain (GstPad *pad, GstBuffer *buf);
+static void gst_median_chain (GstPad *pad, GstData *_data);
static void gst_median_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
static void gst_median_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
@@ -267,8 +267,9 @@ median_9 (unsigned char *src, unsigned char *dest, int width, int height)
}
static void
-gst_median_chain (GstPad *pad, GstBuffer *buf)
+gst_median_chain (GstPad *pad, GstData *_data)
{
+ GstBuffer *buf = GST_BUFFER (_data);
GstMedian *median;
guchar *data;
gulong size;
@@ -283,7 +284,7 @@ gst_median_chain (GstPad *pad, GstBuffer *buf)
median = GST_MEDIAN (GST_OBJECT_PARENT (pad));
if (!median->active) {
- gst_pad_push(median->srcpad,buf);
+ gst_pad_push(median->srcpad,GST_DATA (buf));
return;
}
@@ -323,7 +324,7 @@ gst_median_chain (GstPad *pad, GstBuffer *buf)
gst_buffer_unref(buf);
- gst_pad_push(median->srcpad,outbuf);
+ gst_pad_push(median->srcpad,GST_DATA (outbuf));
}
static void