From 694779a8bb1c4c9dc8c938642cd014486ef6e98e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 23 Dec 2001 23:00:59 +0000 Subject: Fixed some leftover fixes Original commit message from CVS: Fixed some leftover fixes --- ext/arts/gst_arts.c | 4 ---- ext/ladspa/gstladspa.c | 29 +++++++++++++---------------- 2 files changed, 13 insertions(+), 20 deletions(-) (limited to 'ext') diff --git a/ext/arts/gst_arts.c b/ext/arts/gst_arts.c index a513f677..7cd4b250 100644 --- a/ext/arts/gst_arts.c +++ b/ext/arts/gst_arts.c @@ -209,11 +209,7 @@ gst_arts_loop (GstElement *element) g_return_if_fail (arts != NULL); -// do { - gst_arts_wrapper_do(arts->wrapper); - -// } while (!GST_ELEMENT_IS_COTHREAD_STOPPING (element)); } static gboolean 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;inumsinkpads;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;inumsinkpads;i++){ + ladspa->buffers[i] = gst_pad_pull(ladspa->sinkpads[i]); + printf("pulling buffer %d\n", i); + } - for (i=0;inumsinkpads;i++) { + for (i=0;inumsinkpads;i++) { // desc->connect_port(ladspa->handle,i,&(ladspa->controls[i])); - } + } - for (i=0;inumsrcpads && inumsinkpads;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;inumsrcpads && inumsinkpads;i++){ + printf("pushing buffer %d\n", i); + gst_pad_push (ladspa->srcpads[i], ladspa->buffers[i]); + ladspa->buffers[i] = NULL; + } } static void -- cgit v1.2.1