Build fixes for Boost >= 1.73
[dcpomatic.git] / src / lib / butler.cc
index 11ee033e99ad9705c5e86ff04306abfcf04034bf..3e557cffa1b8a1f9e5e82cddb0d811279cbc2c90 100644 (file)
@@ -38,14 +38,17 @@ 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
-/** Maximum video readahead in frames; should never be reached unless there are bugs in Player */
+/** Maximum video readahead in frames; should never be exceeded (by much) unless there are bugs in Player */
 #define MAXIMUM_VIDEO_READAHEAD 48
 /** Minimum audio readahead in frames */
 #define MINIMUM_AUDIO_READAHEAD (48000 * MINIMUM_VIDEO_READAHEAD / 24)
-/** Minimum audio readahead in frames; should never be reached unless there are bugs in Player */
+/** Maximum audio readahead in frames; should never be exceeded (by much) unless there are bugs in Player */
 #define MAXIMUM_AUDIO_READAHEAD (48000 * MAXIMUM_VIDEO_READAHEAD / 24)
 
 /** @param pixel_format Pixel format functor that will be used when calling ::image on PlayerVideos coming out of this
@@ -234,7 +237,7 @@ Butler::get_video (Error* e)
 
        if (_video.empty()) {
                if (e) {
-                       *e = NONE;
+                       *e = _died ? DIED : NONE;
                }
                return make_pair(shared_ptr<PlayerVideo>(), DCPTime());
        }