diff options
author | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:18 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:18 +0000 |
commit | f2d5cae8daade402e9d74a829d2b87283167aaa7 (patch) | |
tree | cbb13b82d43fa41ffaf6c93973e80c2f620ebf8e /gst/videofilter | |
parent | 9246e543319c072c52fffa51259a2cf927c8dd43 (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/videofilter')
-rw-r--r-- | gst/videofilter/gstvideofilter.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gst/videofilter/gstvideofilter.c b/gst/videofilter/gstvideofilter.c index f9c0b8d8..a4a3bae2 100644 --- a/gst/videofilter/gstvideofilter.c +++ b/gst/videofilter/gstvideofilter.c @@ -56,7 +56,7 @@ static void gst_videofilter_init (GstVideofilter *videofilter); static void gst_videofilter_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); static void gst_videofilter_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); -static void gst_videofilter_chain (GstPad *pad, GstBuffer *buf); +static void gst_videofilter_chain (GstPad *pad, GstData *_data); GstCaps * gst_videofilter_class_get_capslist(GstVideofilterClass *klass); static void gst_videofilter_setup(GstVideofilter *videofilter); @@ -366,8 +366,9 @@ gst_videofilter_postinit (GstVideofilter *videofilter) static void -gst_videofilter_chain (GstPad *pad, GstBuffer *buf) +gst_videofilter_chain (GstPad *pad, GstData *_data) { + GstBuffer *buf = GST_BUFFER (_data); GstVideofilter *videofilter; guchar *data; gulong size; @@ -386,7 +387,7 @@ gst_videofilter_chain (GstPad *pad, GstBuffer *buf) size = GST_BUFFER_SIZE(buf); if(videofilter->passthru){ - gst_pad_push(videofilter->srcpad, buf); + gst_pad_push(videofilter->srcpad, GST_DATA (buf)); return; } @@ -419,7 +420,7 @@ gst_videofilter_chain (GstPad *pad, GstBuffer *buf) GST_DEBUG ("gst_videofilter_chain: pushing buffer of %d bytes in '%s'",GST_BUFFER_SIZE(outbuf), GST_OBJECT_NAME (videofilter)); - gst_pad_push(videofilter->srcpad, outbuf); + gst_pad_push(videofilter->srcpad, GST_DATA (outbuf)); gst_buffer_unref(buf); } |