summaryrefslogtreecommitdiffstats
path: root/ext/ladspa
diff options
context:
space:
mode:
authorSteve Baker <steve@stevebaker.org>2002-05-15 19:08:49 +0000
committerSteve Baker <steve@stevebaker.org>2002-05-15 19:08:49 +0000
commit9275ce0e157d95064ab6d5ea47f88c16df6598ec (patch)
tree4267d8b2597a0227fe8a60dbb6315c46fcf2183e /ext/ladspa
parent012aaa2cb0675d8c65e5d4f38f5b7e3f1975ac8a (diff)
downloadgst-plugins-bad-9275ce0e157d95064ab6d5ea47f88c16df6598ec.tar.gz
gst-plugins-bad-9275ce0e157d95064ab6d5ea47f88c16df6598ec.tar.bz2
gst-plugins-bad-9275ce0e157d95064ab6d5ea47f88c16df6598ec.zip
use new bytestream api
Original commit message from CVS: use new bytestream api
Diffstat (limited to 'ext/ladspa')
-rw-r--r--ext/ladspa/gstladspa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c
index 4ad7d3fd..0e75c41d 100644
--- a/ext/ladspa/gstladspa.c
+++ b/ext/ladspa/gstladspa.c
@@ -716,6 +716,7 @@ gst_ladspa_loop(GstElement *element)
guint num_processed, num_to_process;
GstEvent *event = NULL;
guint32 waiting;
+ guint32 got_bytes;
LADSPA_Data **data_in, **data_out;
GstBuffer **buffers_in, **buffers_out;
GstBufferPool *bufpool;
@@ -750,9 +751,9 @@ gst_ladspa_loop(GstElement *element)
/* first get all the necessary data from the input ports */
for (i=0 ; i<numsinkpads ; i++){
GST_DEBUG (0, "pulling %u bytes through channel %d'sbytestream", bufferbytesize, i);
- buffers_in[i] = gst_bytestream_read (bytestreams[i], bufferbytesize);
+ got_bytes = gst_bytestream_read (bytestreams[i], buffers_in + i, bufferbytesize);
- if (buffers_in[i] == NULL) {
+ if (got_bytes != bufferbytesize) {
/* we need to check for an event. */
gst_bytestream_get_status (bytestreams[i], &waiting, &event);