mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
fix a problem in ladspa -- i think...
Original commit message from CVS: fix a problem in ladspa -- i think...
This commit is contained in:
parent
edad35067b
commit
b1bb03e1a8
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue