summaryrefslogtreecommitdiff
path: root/src/lib/film.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-08-30 23:16:21 +0100
committerCarl Hetherington <cth@carlh.net>2019-08-30 23:16:21 +0100
commit1f88a38a2a607c21988a403e76f315444c4be36b (patch)
tree2b14f959784faf33eec61172552d9c50b72a0f65 /src/lib/film.h
parent77d2514fee2919c32e4db92b8f75369754d17fb5 (diff)
Make player more tolerant of some DCP errors.
Diffstat (limited to 'src/lib/film.h')
-rw-r--r--src/lib/film.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/film.h b/src/lib/film.h
index a28d81b6f..6f1294b29 100644
--- a/src/lib/film.h
+++ b/src/lib/film.h
@@ -174,6 +174,14 @@ public:
bool references_dcp_video () const;
bool references_dcp_audio () const;
+ void set_tolerant (bool t) {
+ _tolerant = t;
+ }
+
+ bool tolerant () const {
+ return _tolerant;
+ }
+
/** Identifiers for the parts of our state;
used for signalling changes.
*/
@@ -432,6 +440,11 @@ private:
/** film being used as a template, or 0 */
boost::shared_ptr<Film> _template_film;
+ /** Be tolerant of errors in content (currently applies to DCP only).
+ Not saved as state.
+ */
+ bool _tolerant;
+
boost::signals2::scoped_connection _playlist_change_connection;
boost::signals2::scoped_connection _playlist_order_changed_connection;
boost::signals2::scoped_connection _playlist_content_change_connection;