Change end() to only do one thing, and copy the required stuff into pause()
[dcpomatic.git] / src / lib / dcp_encoder.cc
index 9a840c8ab916b6a594f4e6881f223ad20346f4f5..1b1b117be6d9e93741c6e1cf38f53c2ef2466a13 100644 (file)
@@ -118,6 +118,20 @@ DCPEncoder::go ()
        _writer.finish(_film->dir(_film->dcp_name()));
 }
 
+
+void
+DCPEncoder::pause()
+{
+       _j2k_encoder.pause();
+}
+
+
+void
+DCPEncoder::resume()
+{
+       _j2k_encoder.resume();
+}
+
 void
 DCPEncoder::video (shared_ptr<PlayerVideo> data, DCPTime time)
 {