From: Carl Hetherington Date: Sat, 13 Mar 2021 08:52:37 +0000 (+0100) Subject: Build fix for Ubuntu-16.04-era compilers. X-Git-Tag: v2.15.135~3 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=af9aa6d104f9a9f41f0d06e4407d7bf7b36fecbf Build fix for Ubuntu-16.04-era compilers. --- diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 3f0ac8a7d..c591ba30c 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -103,7 +103,7 @@ FFmpegDecoder::FFmpegDecoder (shared_ptr film, shared_ptrffmpeg_audio_streams()) { - _next_time[i] = {}; + _next_time[i] = boost::optional(); } } @@ -444,7 +444,7 @@ DCPOMATIC_ENABLE_WARNINGS _have_current_subtitle = false; for (auto& i: _next_time) { - i.second = {}; + i.second = boost::optional(); } }