summaryrefslogtreecommitdiff
path: root/src/lib/audio_buffers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/audio_buffers.cc')
-rw-r--r--src/lib/audio_buffers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/audio_buffers.cc b/src/lib/audio_buffers.cc
index 0e31793ea..9b88827f7 100644
--- a/src/lib/audio_buffers.cc
+++ b/src/lib/audio_buffers.cc
@@ -22,7 +22,7 @@
#include "audio_buffers.h"
#include "dcpomatic_assert.h"
#include "maths_util.h"
-#include "scope_guard.h"
+#include <dcp/scope_guard.h>
#include <cassert>
#include <cstring>
#include <cmath>
@@ -83,7 +83,7 @@ AudioBuffers::allocate (int channels, int frames)
DCPOMATIC_ASSERT (frames >= 0);
DCPOMATIC_ASSERT(frames == 0 || channels > 0);
- ScopeGuard sg = [this]() { update_data_pointers(); };
+ dcp::ScopeGuard sg = [this]() { update_data_pointers(); };
_data.resize(channels);
for (int channel = 0; channel < channels; ++channel) {
@@ -344,7 +344,7 @@ AudioBuffers::set_channels(int new_channels)
{
DCPOMATIC_ASSERT(new_channels > 0);
- ScopeGuard sg = [this]() { update_data_pointers(); };
+ dcp::ScopeGuard sg = [this]() { update_data_pointers(); };
int const old_channels = channels();
_data.resize(new_channels);