projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7380f
)
C++11 tidying.
author
Carl Hetherington
<cth@carlh.net>
Mon, 14 Mar 2022 19:24:13 +0000
(20:24 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 14 Mar 2022 19:24:13 +0000
(20:24 +0100)
src/lib/butler.cc
patch
|
blob
|
history
diff --git
a/src/lib/butler.cc
b/src/lib/butler.cc
index 686fa9f7272849c70f035ef836f17be50096e91c..de6a6512649ac1a31543736fdb8fa5b3cebadedc 100644
(file)
--- a/
src/lib/butler.cc
+++ b/
src/lib/butler.cc
@@
-149,7
+149,7
@@
Butler::should_run () const
if (_audio.size() >= MAXIMUM_AUDIO_READAHEAD * 10) {
/* This is way too big */
-
optional<DCPTime>
pos = _audio.peek();
+
auto
pos = _audio.peek();
if (pos) {
throw ProgrammingError
(__FILE__, __LINE__, String::compose ("Butler audio buffers reached %1 frames at %2 (video is %3)", _audio.size(), pos->get(), _video.size()));