Make DCPExaminer::size() optional and deal with the consequences.
[dcpomatic.git] / src / wx / video_panel.cc
index 8a02dff25b01acc08e958f05717124dce8f96ad0..b27db2547baa72e5e2d1f7b9720184dd1997685d 100644 (file)
@@ -725,7 +725,10 @@ bool
 VideoPanel::scale_custom_edit_clicked ()
 {
        auto vc = _parent->selected_video().front()->video;
-       CustomScaleDialog dialog(this, vc->size(), _parent->film()->frame_size(), vc->custom_ratio(), vc->custom_size());
+       auto size = vc->size();
+       DCPOMATIC_ASSERT(size);
+
+       CustomScaleDialog dialog(this, *size, _parent->film()->frame_size(), vc->custom_ratio(), vc->custom_size());
        if (dialog.ShowModal() != wxID_OK) {
                return false;
        }