From c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 8 Oct 2003 16:08:19 +0000 Subject: /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. --- gst/videodrop/gstvideodrop.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gst/videodrop') diff --git a/gst/videodrop/gstvideodrop.c b/gst/videodrop/gstvideodrop.c index 252d773b..5b8453b5 100644 --- a/gst/videodrop/gstvideodrop.c +++ b/gst/videodrop/gstvideodrop.c @@ -87,7 +87,7 @@ GST_PAD_TEMPLATE_FACTORY(sink_template, static void gst_videodrop_class_init (GstVideodropClass *klass); static void gst_videodrop_init (GstVideodrop *videodrop); -static void gst_videodrop_chain (GstPad *pad, GstBuffer *buf); +static void gst_videodrop_chain (GstPad *pad, GstData *_data); static GstElementClass *parent_class = NULL; /*static guint gst_videodrop_signals[LAST_SIGNAL] = { 0 }; */ @@ -199,8 +199,9 @@ gst_videodrop_init (GstVideodrop *videodrop) } static void -gst_videodrop_chain (GstPad *pad, GstBuffer *buf) +gst_videodrop_chain (GstPad *pad, GstData *_data) { + GstBuffer *buf = GST_BUFFER (_data); GstVideodrop *videodrop; GST_DEBUG ("gst_videodrop_chain"); @@ -212,7 +213,7 @@ gst_videodrop_chain (GstPad *pad, GstBuffer *buf) videodrop = GST_VIDEODROP (gst_pad_get_parent (pad)); if (GST_IS_EVENT (buf)) { - gst_pad_push (videodrop->srcpad, buf); + gst_pad_push (videodrop->srcpad, GST_DATA (buf)); return; } @@ -221,7 +222,7 @@ gst_videodrop_chain (GstPad *pad, GstBuffer *buf) (gfloat) videodrop->pass / videodrop->total) { videodrop->pass++; gst_buffer_ref (buf); - gst_pad_push (videodrop->srcpad, buf); + gst_pad_push (videodrop->srcpad, GST_DATA (buf)); } gst_buffer_unref (buf); -- cgit v1.2.1