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. --- ext/speex/gstspeexdec.c | 5 +++-- ext/speex/gstspeexenc.c | 11 ++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'ext/speex') diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index 89b5c576..7ef79df7 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -52,7 +52,7 @@ enum { static void gst_speexdec_class_init (GstSpeexDec *klass); static void gst_speexdec_init (GstSpeexDec *speexdec); -static void gst_speexdec_chain (GstPad *pad, GstBuffer *buf); +static void gst_speexdec_chain (GstPad *pad, GstData *_data); static GstPadLinkReturn gst_speexdec_sinkconnect (GstPad *pad, GstCaps *caps); static GstElementClass *parent_class = NULL; @@ -135,8 +135,9 @@ gst_speexdec_sinkconnect (GstPad *pad, GstCaps *caps) } static void -gst_speexdec_chain (GstPad *pad, GstBuffer *buf) +gst_speexdec_chain (GstPad *pad, GstData *_data) { + GstBuffer *buf = GST_BUFFER (_data); GstSpeexDec *speexdec; gchar *data; guint size; diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index dd4cb45f..47412bb6 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -53,7 +53,7 @@ enum { static void gst_speexenc_class_init (GstSpeexEnc *klass); static void gst_speexenc_init (GstSpeexEnc *speexenc); -static void gst_speexenc_chain (GstPad *pad,GstBuffer *buf); +static void gst_speexenc_chain (GstPad *pad,GstData *_data); static GstPadLinkReturn gst_speexenc_sinkconnect (GstPad *pad, GstCaps *caps); static GstElementClass *parent_class = NULL; @@ -149,8 +149,9 @@ gst_speexenc_sinkconnect (GstPad *pad, GstCaps *caps) } static void -gst_speexenc_chain (GstPad *pad, GstBuffer *buf) +gst_speexenc_chain (GstPad *pad, GstData *_data) { + GstBuffer *buf = GST_BUFFER (_data); GstSpeexEnc *speexenc; GstBuffer *outbuf; gint16 *data; @@ -188,7 +189,7 @@ gst_speexenc_chain (GstPad *pad, GstBuffer *buf) GST_BUFFER_DATA (outbuf) = header_data; GST_BUFFER_SIZE (outbuf) = size; - gst_pad_push (speexenc->srcpad, outbuf); + gst_pad_push (speexenc->srcpad, GST_DATA (outbuf)); } data = (gint16 *) GST_BUFFER_DATA (buf); @@ -214,7 +215,7 @@ gst_speexenc_chain (GstPad *pad, GstBuffer *buf) GST_BUFFER_TIMESTAMP (outbuf) = speexenc->next_ts; speex_bits_reset(&speexenc->bits); - gst_pad_push (speexenc->srcpad, outbuf); + gst_pad_push (speexenc->srcpad, GST_DATA (outbuf)); speexenc->next_ts += frame_size * GST_SECOND / speexenc->rate; } @@ -240,7 +241,7 @@ gst_speexenc_chain (GstPad *pad, GstBuffer *buf) GST_BUFFER_TIMESTAMP (outbuf) = speexenc->next_ts; speex_bits_reset(&speexenc->bits); - gst_pad_push (speexenc->srcpad, outbuf); + gst_pad_push (speexenc->srcpad, GST_DATA (outbuf)); speexenc->next_ts += frame_size * GST_SECOND / speexenc->rate; } -- cgit