projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: handle Filter objects by value rather than by reference.
[dcpomatic.git]
/
src
/
lib
/
audio_delay.cc
diff --git
a/src/lib/audio_delay.cc
b/src/lib/audio_delay.cc
index 90214470cd279185cd2e4a3ef4f7ef825c978a16..d06d9e73023055d8d060ae322bd64cc63e379f0c 100644
(file)
--- a/
src/lib/audio_delay.cc
+++ b/
src/lib/audio_delay.cc
@@
-43,7
+43,7
@@
AudioDelay::run (shared_ptr<const AudioBuffers> in)
/* You can't call this with varying channel counts */
DCPOMATIC_ASSERT (!_tail || in->channels() == _tail->channels());
/* You can't call this with varying channel counts */
DCPOMATIC_ASSERT (!_tail || in->channels() == _tail->channels());
-
shared_ptr<AudioBuffers> out (new AudioBuffers (in->channels(), in->frames()
));
+
auto out = make_shared<AudioBuffers>(in->channels(), in->frames(
));
if (in->frames() > _samples) {
if (in->frames() > _samples) {