From d1e9749ca290673639a49d693a8fe5c6557cc2de Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 27 Aug 2020 20:37:32 +0000 Subject: Build fixes for Boost >= 1.73 --- src/lib/analyse_audio_job.cc | 3 +++ src/lib/butler.cc | 3 +++ src/lib/dcp_video.cc | 5 ++++- src/lib/encode_server_finder.cc | 4 ++++ src/lib/ffmpeg_encoder.cc | 3 +++ src/lib/ffmpeg_file_encoder.cc | 3 +++ src/lib/hints.cc | 3 +++ src/lib/playlist.cc | 4 ++++ src/lib/upload_job.cc | 3 +++ src/lib/verify_dcp_job.cc | 3 +++ 10 files changed, 33 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/analyse_audio_job.cc b/src/lib/analyse_audio_job.cc index d52b40515..1c3b1069a 100644 --- a/src/lib/analyse_audio_job.cc +++ b/src/lib/analyse_audio_job.cc @@ -47,6 +47,9 @@ using std::min; using std::cout; using boost::shared_ptr; using boost::dynamic_pointer_cast; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif int const AnalyseAudioJob::_num_points = 1024; diff --git a/src/lib/butler.cc b/src/lib/butler.cc index ab3e9b94e..3e557cffa 100644 --- a/src/lib/butler.cc +++ b/src/lib/butler.cc @@ -38,6 +38,9 @@ using boost::shared_ptr; using boost::bind; using boost::optional; using boost::function; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif /** Minimum video readahead in frames */ #define MINIMUM_VIDEO_READAHEAD 10 diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 6f32b6686..6111c3e14 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -59,6 +59,9 @@ using boost::shared_ptr; using dcp::Size; using dcp::Data; using dcp::raw_convert; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif #define DCI_COEFFICENT (48.0 / 52.37) @@ -115,7 +118,7 @@ DCPVideo::convert_to_xyz (shared_ptr frame, dcp::NoteHandler Data DCPVideo::encode_locally () { - Data enc = compress_j2k ( + Data enc = dcp::compress_j2k ( convert_to_xyz (_frame, boost::bind(&Log::dcp_log, dcpomatic_log.get(), _1, _2)), _j2k_bandwidth, _frames_per_second, diff --git a/src/lib/encode_server_finder.cc b/src/lib/encode_server_finder.cc index 6cdd8ce3c..ef199e8db 100644 --- a/src/lib/encode_server_finder.cc +++ b/src/lib/encode_server_finder.cc @@ -27,6 +27,7 @@ #include "dcpomatic_socket.h" #include #include +#include #include #include @@ -40,6 +41,9 @@ using boost::shared_ptr; using boost::scoped_array; using boost::weak_ptr; using boost::optional; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif using dcp::raw_convert; EncodeServerFinder* EncodeServerFinder::_instance = 0; diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc index 25ad4a54c..bf7bdbd04 100644 --- a/src/lib/ffmpeg_encoder.cc +++ b/src/lib/ffmpeg_encoder.cc @@ -41,6 +41,9 @@ using std::map; using boost::shared_ptr; using boost::bind; using boost::weak_ptr; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif FFmpegEncoder::FFmpegEncoder ( shared_ptr film, diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index 294b03162..2c5faa461 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -38,6 +38,9 @@ using std::pair; using boost::shared_ptr; using boost::bind; using boost::weak_ptr; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif int FFmpegFileEncoder::_video_stream_index = 0; int FFmpegFileEncoder::_audio_stream_index = 1; diff --git a/src/lib/hints.cc b/src/lib/hints.cc index df29a3336..1e5101e16 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -49,6 +49,9 @@ using boost::shared_ptr; using boost::weak_ptr; using boost::optional; using boost::bind; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif Hints::Hints (weak_ptr film) : _film (film) diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index 6d125afa6..64c50f905 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -34,6 +34,7 @@ #include "compose.hpp" #include #include +#include #include #include #include @@ -51,6 +52,9 @@ using boost::optional; using boost::shared_ptr; using boost::weak_ptr; using boost::dynamic_pointer_cast; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif Playlist::Playlist () : _sequence (true) diff --git a/src/lib/upload_job.cc b/src/lib/upload_job.cc index fbfbb92d8..c07e0c3d4 100644 --- a/src/lib/upload_job.cc +++ b/src/lib/upload_job.cc @@ -38,6 +38,9 @@ using std::string; using std::min; using boost::shared_ptr; using boost::scoped_ptr; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif UploadJob::UploadJob (shared_ptr film) : Job (film) diff --git a/src/lib/verify_dcp_job.cc b/src/lib/verify_dcp_job.cc index 35d3225f1..daf8d0005 100644 --- a/src/lib/verify_dcp_job.cc +++ b/src/lib/verify_dcp_job.cc @@ -27,6 +27,9 @@ using std::string; using std::vector; using boost::shared_ptr; using boost::optional; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif VerifyDCPJob::VerifyDCPJob (vector directories) : Job (shared_ptr()) -- cgit v1.2.3