diff options
author | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:19 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:19 +0000 |
commit | c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79 (patch) | |
tree | 88f65b715d1fa83677b13286b3681a6096b5dcf2 /ext/sndfile | |
parent | 69edaac422d50a0e365fae15d354c07c0f5419d4 (diff) | |
download | gst-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.tar.gz gst-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.tar.bz2 gst-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.zip |
/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/sndfile')
-rw-r--r-- | ext/sndfile/gstsf.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; j<read; j++) data[j] = buf[j * nchannels + i % nchannels]; - gst_pad_push (channel->pad, 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, |