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/video_examiner.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/video_examiner.h') diff --git a/src/lib/video_examiner.h b/src/lib/video_examiner.h index 44a1186bb..b670dafc5 100644 --- a/src/lib/video_examiner.h +++ b/src/lib/video_examiner.h @@ -41,8 +41,8 @@ public: /** @return video frame rate (if known); must not be called if has_video() == false */ virtual boost::optional video_frame_rate () const = 0; - /** @return video size; must not be called if has_video() == false */ - virtual dcp::Size video_size () const = 0; + /** @return video size (if known) */ + virtual boost::optional video_size() const = 0; /** @return video length in frames; must not be called if has_video() == false */ virtual Frame video_length () const = 0; /** @return video sample aspect ratio (if known); must not be called if has_video() == false */ -- cgit v1.2.3