summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-20 00:31:32 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-20 20:36:46 +0100
commit385635f00d39822389adbc99a2d5bdd992f16432 (patch)
tree284ad0ac65988eb102f0f6334701496213cfd7a7 /src/lib/content.h
parent0b66748421b751b1863ce86f98ab449c8e8e87fc (diff)
Pass tolerant flag into Content::examine() and the ExamineContentJob.
Along the way this helps to fix #2942.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index 29dce2c9e..1b4f2b40c 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -86,8 +86,10 @@ public:
/** Examine the content to establish digest, frame rates and any other
* useful metadata.
* @param job Job to use to report progress, or 0.
+ * @param tolerant true to try to carry on in the presence of problems with the content,
+ * false to throw exceptions in these cases.
*/
- virtual void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job> job);
+ virtual void examine(std::shared_ptr<const Film> film, std::shared_ptr<Job> job, bool tolerant);
virtual void take_settings_from (std::shared_ptr<const Content> c);