Christie FTP contains certificate chains, not just leaf certificates.
[dcpomatic.git] / src / lib / ffmpeg_encoder.cc
index 4614903dbec11996f437bd315b2e755a9fcc8cc3..68575d11adc072c69b9a2bc1e16f93a223fd1b0f 100644 (file)
@@ -141,7 +141,11 @@ FFmpegEncoder::go ()
                }
 
                for (int j = 0; j < gets_per_frame; ++j) {
-                       pair<shared_ptr<PlayerVideo>, DCPTime> v = _butler->get_video ();
+                       Butler::Error e;
+                       pair<shared_ptr<PlayerVideo>, DCPTime> v = _butler->get_video (&e);
+                       if (!v.first) {
+                               throw ProgrammingError(__FILE__, __LINE__, String::compose("butler returned no video; error was %1", static_cast<int>(e)));
+                       }
                        shared_ptr<FFmpegFileEncoder> fe = encoder->get (v.first->eyes());
                        if (fe) {
                                fe->video(v.first, v.second);
@@ -177,6 +181,8 @@ FFmpegEncoder::go ()
        BOOST_FOREACH (FileEncoderSet i, _file_encoders) {
                i.flush ();
        }
+
+       _butler->rethrow ();
 }
 
 float