diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2001-12-23 23:00:59 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2001-12-23 23:00:59 +0000 |
commit | cdb004a72294b899ab6094fd9f3acfa6bf7cfbf2 (patch) | |
tree | 076b4b14865d9b29dcca44d57919c749ca38114a /ext/ladspa | |
parent | 35e50facf7554f540e67b99bd79f06adbbf7dd24 (diff) |
Fixed some leftover fixes
Original commit message from CVS:
Fixed some leftover fixes
Diffstat (limited to 'ext/ladspa')
-rw-r--r-- | ext/ladspa/gstladspa.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index 81740c25..e605ec34 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -640,26 +640,23 @@ gst_ladspa_loop (GstElement *element) LADSPA_Descriptor *desc; desc = ladspa->descriptor; - do { - printf("looping something\n"); + printf("looping something\n"); - // first get all the necessary data from the input ports - for (i=0;i<oclass->numsinkpads;i++){ - ladspa->buffers[i] = gst_pad_pull(ladspa->sinkpads[i]); - printf("pulling buffer %d\n", i); - } + // first get all the necessary data from the input ports + for (i=0;i<oclass->numsinkpads;i++){ + ladspa->buffers[i] = gst_pad_pull(ladspa->sinkpads[i]); + printf("pulling buffer %d\n", i); + } - for (i=0;i<oclass->numsinkpads;i++) { + for (i=0;i<oclass->numsinkpads;i++) { // desc->connect_port(ladspa->handle,i,&(ladspa->controls[i])); - } + } - for (i=0;i<oclass->numsrcpads && i<oclass->numsinkpads;i++){ - printf("pushing buffer %d\n", i); - gst_pad_push (ladspa->srcpads[i], ladspa->buffers[i]); - ladspa->buffers[i] = NULL; - } - - } while (!GST_ELEMENT_IS_COTHREAD_STOPPING (element)); + for (i=0;i<oclass->numsrcpads && i<oclass->numsinkpads;i++){ + printf("pushing buffer %d\n", i); + gst_pad_push (ladspa->srcpads[i], ladspa->buffers[i]); + ladspa->buffers[i] = NULL; + } } static void |