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/tools/dcpomatic_cli.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/dcpomatic_cli.cc') diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index c07f39add..65252ff29 100644 --- a/src/tools/dcpomatic_cli.cc +++ b/src/tools/dcpomatic_cli.cc @@ -103,8 +103,8 @@ print_dump (shared_ptr film) << " start trim " << c->trim_start().seconds () << " end trim " << c->trim_end().seconds () << "\n"; - if (c->video) { - cout << "\t" << c->video->size().width << "x" << c->video->size().height << "\n" + if (c->video && c->video->size()) { + cout << "\t" << c->video->size()->width << "x" << c->video->size()->height << "\n" << "\t" << c->active_video_frame_rate(film) << "fps\n" << "\tcrop left " << c->video->requested_left_crop() << " right " << c->video->requested_right_crop() -- cgit v1.2.3