Make DCPExaminer::size() optional and deal with the consequences.
[dcpomatic.git] / src / lib / player_video.cc
index d45bf9f432b90c996feb870baf1580fc3a5796a4..35c5d3daa484f997d141417bf56efa10208753e8 100644 (file)
@@ -362,8 +362,13 @@ PlayerVideo::reset_metadata (shared_ptr<const Film> film, dcp::Size player_video
 
        _crop = content->video->actual_crop();
        _fade = content->video->fade(film, _video_frame.get());
+       auto const size = content->video->scaled_size(film->frame_size());
+       if (!size) {
+               return false;
+       }
+
        _inter_size = scale_for_display(
-               content->video->scaled_size(film->frame_size()),
+               *size,
                player_video_container_size,
                film->frame_size(),
                content->video->pixel_quanta()