projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c59a10b
)
Cleanup: use auto.
author
Carl Hetherington
<cth@carlh.net>
Sun, 18 Feb 2024 22:34:26 +0000
(23:34 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 19 Feb 2024 08:54:43 +0000
(09:54 +0100)
src/lib/butler.cc
patch
|
blob
|
history
diff --git
a/src/lib/butler.cc
b/src/lib/butler.cc
index b2fbc6c60b630be0c0478dace3b922c735517878..dd98745878a1aadac6fb8699c6ee4ab8ceabb5bf 100644
(file)
--- a/
src/lib/butler.cc
+++ b/
src/lib/butler.cc
@@
-138,7
+138,7
@@
Butler::should_run () const
{
if (_video.size() >= MAXIMUM_VIDEO_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 video buffers reached %1 frames (audio is %2 at %3)", _video.size(), _audio.size(), pos->get()));