C++11 tidying.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Mar 2022 19:24:13 +0000 (20:24 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Mar 2022 19:24:13 +0000 (20:24 +0100)
src/lib/butler.cc

index 686fa9f7272849c70f035ef836f17be50096e91c..de6a6512649ac1a31543736fdb8fa5b3cebadedc 100644 (file)
@@ -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()));