projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af0edaf
)
Fix thinko two commits ago.
author
Carl Hetherington
<cth@carlh.net>
Sat, 25 Jan 2020 09:05:34 +0000
(10:05 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 25 Jan 2020 09:05:34 +0000
(10:05 +0100)
src/lib/audio_buffers.cc
patch
|
blob
|
history
diff --git
a/src/lib/audio_buffers.cc
b/src/lib/audio_buffers.cc
index 8d3a897c42d76eb7ecd7f0474afdba63ba014a27..82df9d6f6984dfc19f36dcc5dd71932df15eae91 100644
(file)
--- a/
src/lib/audio_buffers.cc
+++ b/
src/lib/audio_buffers.cc
@@
-269,8
+269,11
@@
AudioBuffers::ensure_size (int32_t frames)
}
}
-
make_silent (_allocated_frames, frames - _allocated_frames)
;
+
int32_t const old_allocated = _allocated_frames
;
_allocated_frames = frames;
+ if (old_allocated < _allocated_frames) {
+ make_silent (old_allocated, _allocated_frames - old_allocated);
+ }
}
/** Mix some other buffers with these ones. The AudioBuffers must have the same number of channels.