X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbutler.cc;h=de6a6512649ac1a31543736fdb8fa5b3cebadedc;hb=6acf4527c0b2919f5774d9dbff2ad5c0fa98075a;hp=686fa9f7272849c70f035ef836f17be50096e91c;hpb=2a7380f75fe82370dec39def1d59e82235861a89;p=dcpomatic.git diff --git a/src/lib/butler.cc b/src/lib/butler.cc index 686fa9f72..de6a65126 100644 --- 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 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()));