From eb47cfe0cfe8afeea8207c4a78d8441b30b92c28 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 Dec 2017 21:54:50 +0000 Subject: Give a better error. --- src/lib/reel_writer.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index 10d405961..1e730259f 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -493,7 +493,12 @@ ReelWriter::create_reel (list const & refs, listduration() == period_duration); + if (reel_subtitle_asset->duration() != period_duration) { + throw ProgrammingError ( + __FILE__, __LINE__, + String::compose ("%1 vs %2", reel_subtitle_asset->duration(), period_duration) + ); + } reel->add (reel_subtitle_asset); } -- cgit v1.2.3