projects
/
goodguy
/
cinelerra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877396e
)
Prevent delay audio plugin from crashing
author
Good Guy
<
[email protected]
>
Thu, 25 May 2023 14:37:07 +0000
(08:37 -0600)
committer
Good Guy
<
[email protected]
>
Thu, 25 May 2023 14:37:07 +0000
(08:37 -0600)
cinelerra-5.1/plugins/delayaudio/delayaudio.C
patch
|
blob
|
history
diff --git
a/cinelerra-5.1/plugins/delayaudio/delayaudio.C
b/cinelerra-5.1/plugins/delayaudio/delayaudio.C
index 22c32f62f5115e91330e13c8008e1cbe2570f892..9396db817d5fd07c8e5f3c3e1e67c166abdd138a 100644
(file)
--- a/
cinelerra-5.1/plugins/delayaudio/delayaudio.C
+++ b/
cinelerra-5.1/plugins/delayaudio/delayaudio.C
@@
-136,8
+136,7
@@
void DelayAudio::reconfigure()
if(buffer)
{
- int size = MIN(new_allocation, allocation);
-
+ int size = new_allocation;
memcpy(new_buffer->get_data(),
buffer->get_data(),
(size - PluginClient::in_buffer_size) * sizeof(double));
@@
-154,7
+153,8
@@
int DelayAudio::process_realtime(int64_t size, Samples *input_ptr, Samples *outp
{
load_configuration();
- if(need_reconfigure) reconfigure();
+// if(need_reconfigure) reconfigure();
+ reconfigure();
// printf("DelayAudio::process_realtime %d %d\n",
// input_start, size);