From 3ffd0163026be24e5373e0674c3301ed37546e44 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 21 Feb 2024 10:47:38 +0100 Subject: Make DCPExaminer::size() optional and deal with the consequences. This means we can fix the case of a VF having no known size in a nice way, in turn fixing problems caused by the fix to #2775. --- src/lib/dcp_examiner.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/dcp_examiner.h') diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index 444fb7567..04fa31ea4 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -48,10 +48,8 @@ public: return _video_frame_rate; } - dcp::Size video_size () const override { - DCPOMATIC_ASSERT (_has_video); - DCPOMATIC_ASSERT (_video_size); - return *_video_size; + boost::optional video_size() const override { + return _video_size; } Frame video_length () const override { -- cgit v1.2.3