Tidy up logging a bit. Make it configurable from the GUI.
[dcpomatic.git] / src / lib / image_decoder.cc
index d33b64cd446086a96c092bf9c9e64e6b8292ee7a..7a9acd9e4960e611bda76e912e4837738e94dc59 100644 (file)
@@ -53,7 +53,10 @@ ImageDecoder::pass ()
                return;
        }
 
-       _image.reset (new MagickImageProxy (_image_content->path (_image_content->still() ? 0 : _video_position)));
+       shared_ptr<const Film> film = _film.lock ();
+       assert (film);
+
+       _image.reset (new MagickImageProxy (_image_content->path (_image_content->still() ? 0 : _video_position), film->log ()));
        video (_image, false, _video_position);
 }