From f2d5cae8daade402e9d74a829d2b87283167aaa7 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 8 Oct 2003 16:08:18 +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/monoscope/gstmonoscope.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gst/monoscope') diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c index 13a6099b..a87414ac 100644 --- a/gst/monoscope/gstmonoscope.c +++ b/gst/monoscope/gstmonoscope.c @@ -124,7 +124,7 @@ GST_PAD_TEMPLATE_FACTORY (sink_template, static void gst_monoscope_class_init (GstMonoscopeClass *klass); static void gst_monoscope_init (GstMonoscope *monoscope); -static void gst_monoscope_chain (GstPad *pad, GstBuffer *buf); +static void gst_monoscope_chain (GstPad *pad, GstData *_data); static GstPadLinkReturn gst_monoscope_sinkconnect (GstPad *pad, GstCaps *caps); @@ -250,8 +250,9 @@ gst_monoscope_srcconnect (GstPad *pad, GstCaps *caps) } static void -gst_monoscope_chain (GstPad *pad, GstBuffer *bufin) +gst_monoscope_chain (GstPad *pad, GstData *_data) { + GstBuffer *bufin = GST_BUFFER (_data); GstMonoscope *monoscope; GstBuffer *bufout; guint32 samples_in; @@ -300,7 +301,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin) monoscope->next_time += GST_SECOND / monoscope->fps; - gst_pad_push (monoscope->srcpad, bufout); + gst_pad_push (monoscope->srcpad, GST_DATA (bufout)); gst_buffer_unref (bufin); -- cgit