summaryrefslogtreecommitdiffstats
path: root/ext/ladspa
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-05-30 04:16:34 +0000
committerAndy Wingo <wingo@pobox.com>2002-05-30 04:16:34 +0000
commitc5b642c13bb72ca36d33543bc843136edb41e746 (patch)
tree8f9343d08479abba764fcbfb3235492e0810f465 /ext/ladspa
parentfc771c97a45fcc4afa103f3090d61681a0dd4002 (diff)
downloadgst-plugins-bad-c5b642c13bb72ca36d33543bc843136edb41e746.tar.gz
gst-plugins-bad-c5b642c13bb72ca36d33543bc843136edb41e746.tar.bz2
gst-plugins-bad-c5b642c13bb72ca36d33543bc843136edb41e746.zip
fix a problem in ladspa -- i think...
Original commit message from CVS: fix a problem in ladspa -- i think...
Diffstat (limited to 'ext/ladspa')
-rw-r--r--ext/ladspa/gstladspa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c
index 75568482..0e3d75d4 100644
--- a/ext/ladspa/gstladspa.c
+++ b/ext/ladspa/gstladspa.c
@@ -1016,9 +1016,6 @@ gst_ladspa_get(GstPad *pad)
GST_DPMAN_PREPROCESS(ladspa->dpman, ladspa->buffersize, ladspa->timestamp);
num_processed = 0;
- /* update timestamp */
- ladspa->timestamp += num_to_process * 10^9 / ladspa->samplerate;
-
/* split up processing of the buffer into chunks so that dparams can
* be updated when required.
* In many cases the buffer will be processed in one chunk anyway.
@@ -1026,6 +1023,9 @@ gst_ladspa_get(GstPad *pad)
while(GST_DPMAN_PROCESS(ladspa->dpman, num_processed)) {
num_to_process = GST_DPMAN_FRAMES_TO_PROCESS(ladspa->dpman);
+ /* update timestamp */
+ ladspa->timestamp += num_to_process * GST_SECOND / ladspa->samplerate;
+
desc->connect_port(ladspa->handle,oclass->srcpad_portnums[0],data);
desc->run(ladspa->handle, num_to_process);