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 /ext/flac | |
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 'ext/flac')
-rw-r--r-- | ext/flac/gstflacdec.c | 6 | ||||
-rw-r--r-- | ext/flac/gstflacenc.c | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index c11be9f6..ea7b0576 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -451,7 +451,7 @@ gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder, GST_FORMAT_DEFAULT, flacdec->total_samples, NULL); - gst_pad_push (flacdec->srcpad, GST_BUFFER (discont)); + gst_pad_push (flacdec->srcpad, GST_DATA (discont)); } } } @@ -502,7 +502,7 @@ gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder, g_warning ("flacdec: invalid depth %d found\n", depth); return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT; } - gst_pad_push (flacdec->srcpad, outbuf); + gst_pad_push (flacdec->srcpad, GST_DATA (outbuf)); } flacdec->total_samples += samples; @@ -555,7 +555,7 @@ gst_flacdec_loop (GstElement *element) if (GST_PAD_IS_USABLE (flacdec->srcpad)) { event = gst_event_new (GST_EVENT_EOS); - gst_pad_push (flacdec->srcpad, GST_BUFFER (event)); + gst_pad_push (flacdec->srcpad, GST_DATA (event)); } gst_element_set_eos (element); } diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index ef9e5386..816c8558 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -70,7 +70,7 @@ static void gst_flacenc_dispose (GObject *object); static GstPadLinkReturn gst_flacenc_sinkconnect (GstPad *pad, GstCaps *caps); -static void gst_flacenc_chain (GstPad *pad, GstBuffer *buf); +static void gst_flacenc_chain (GstPad *pad, GstData *_data); static gboolean gst_flacenc_update_quality (FlacEnc *flacenc, gint quality); static void gst_flacenc_set_property (GObject *object, guint prop_id, @@ -410,7 +410,7 @@ GstEvent *event; event = gst_event_new_seek ((GstSeekType)(int)(GST_FORMAT_BYTES | GST_SEEK_METHOD_SET), absolute_byte_offset); if (event) - gst_pad_push (flacenc->srcpad, GST_BUFFER (event)); + gst_pad_push (flacenc->srcpad, GST_DATA (event)); return FLAC__STREAM_ENCODER_OK; } @@ -439,7 +439,7 @@ gst_flacenc_write_callback (const FLAC__SeekableStreamEncoder *encoder, flacenc->first = FALSE; } - gst_pad_push (flacenc->srcpad, outbuf); + gst_pad_push (flacenc->srcpad, GST_DATA (outbuf)); return FLAC__STREAM_ENCODER_OK; } @@ -485,8 +485,9 @@ gst_flacenc_set_metadata (FlacEnc *flacenc, GstCaps *caps) static void -gst_flacenc_chain (GstPad *pad, GstBuffer *buf) +gst_flacenc_chain (GstPad *pad, GstData *_data) { + GstBuffer *buf = GST_BUFFER (_data); FlacEnc *flacenc; FLAC__int32 *data; gulong insize; |