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. --- ext/sndfile/gstsf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/sndfile') diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c index 3d75087b..631c7a65 100644 --- a/ext/sndfile/gstsf.c +++ b/ext/sndfile/gstsf.c @@ -703,7 +703,7 @@ gst_sf_loop (GstElement *element) data = (gfloat*)GST_BUFFER_DATA (out); for (j=0; jpad, out); + gst_pad_push (channel->pad, GST_DATA (out)); } this->time += read * (GST_SECOND / this->rate); @@ -715,7 +715,7 @@ gst_sf_loop (GstElement *element) eos = 0; } else { for (l=this->channels; l; l=l->next) - gst_pad_push (GST_SF_CHANNEL (l)->pad, (GstBuffer*)gst_event_new (GST_EVENT_EOS)); + gst_pad_push (GST_SF_CHANNEL (l)->pad, GST_DATA (gst_event_new (GST_EVENT_EOS))); gst_element_set_eos (element); } } @@ -740,7 +740,7 @@ gst_sf_loop (GstElement *element) for (i=0,l=this->channels; l; l=l->next,i++) { channel = GST_SF_CHANNEL (l); - in = gst_pad_pull (channel->pad); + in = GST_BUFFER (gst_pad_pull (channel->pad)); if (buffer_frames == 0) { /* pulling a buffer from the pad should have caused capsnego to occur, -- cgit v1.2.1