Merge master; fix crash on new film.
[dcpomatic.git] / src / wx / film_viewer.cc
index e742a3e41b7ce9757f476fcd95abb1e4e7ccc97b..e9a1a574be01477b884e34a5eeb05e30684edbcc 100644 (file)
@@ -300,7 +300,7 @@ FilmViewer::raw_to_display ()
                return;
        }
 
-       shared_ptr<Image> input = _raw_frame;
+       shared_ptr<const Image> input = _raw_frame;
 
        pair<string, string> const s = Filter::ffmpeg_strings (_film->filters());
        if (!s.second.empty ()) {
@@ -392,7 +392,7 @@ FilmViewer::check_play_state ()
 }
 
 void
-FilmViewer::process_video (shared_ptr<Image> image, bool, shared_ptr<Subtitle> sub, double t)
+FilmViewer::process_video (shared_ptr<const Image> image, bool, shared_ptr<Subtitle> sub, double t)
 {
        _raw_frame = image;
        _raw_sub = sub;