Simple cover sheet support (#1039).
[dcpomatic.git] / src / lib / magick_image_proxy.cc
index d207e0561de2eb33967434a6edc19c7436c75412..b8255c9ad92b70f3706d4b3801a25b744a8572e0 100644 (file)
@@ -43,7 +43,7 @@ MagickImageProxy::MagickImageProxy (boost::filesystem::path path)
        boost::uintmax_t const size = boost::filesystem::file_size (path);
        FILE* f = fopen_boost (path, "rb");
        if (!f) {
-               throw OpenFileError (path);
+               throw OpenFileError (path, errno, true);
        }
 
        uint8_t* data = new uint8_t[size];
@@ -67,7 +67,7 @@ MagickImageProxy::MagickImageProxy (shared_ptr<cxml::Node>, shared_ptr<Socket> s
 }
 
 shared_ptr<Image>
-MagickImageProxy::image (optional<dcp::NoteHandler>) const
+MagickImageProxy::image (optional<dcp::NoteHandler>, optional<dcp::Size>) const
 {
        boost::mutex::scoped_lock lm (_mutex);