X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.h;h=d0faeb9d42883f1fcdcd8cb7774b09fec159bc6e;hb=f706bbb9afd10472e81a051cd5db601d6404377c;hp=550b3cd9cf52770e7a9acb7786a86dac3829130d;hpb=1284c2d02a367afaeb18acc2138293e8bdf724ae;p=dcpomatic.git diff --git a/src/lib/content.h b/src/lib/content.h index 550b3cd9c..d0faeb9d4 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -27,10 +27,11 @@ #ifndef DCPOMATIC_CONTENT_H #define DCPOMATIC_CONTENT_H -#include "types.h" -#include "signaller.h" -#include "dcpomatic_time.h" + #include "change_signaller.h" +#include "dcpomatic_time.h" +#include "signaller.h" +#include "types.h" #include "user_property.h" #include #include @@ -191,6 +192,10 @@ public: std::string calculate_digest () const; + virtual bool can_be_played () const { + return true; + } + /* ChangeType::PENDING and ChangeType::CANCELLED may be emitted from any thread; ChangeType::DONE always from GUI thread */ boost::signals2::signal, int, bool)> Change; @@ -202,6 +207,9 @@ public: std::shared_ptr only_text () const; std::shared_ptr text_of_original_type (TextType type) const; + /** @return true if this content has changed since it was last examined */ + bool changed () const; + protected: virtual void add_properties (std::shared_ptr film, std::list &) const; @@ -218,6 +226,7 @@ private: friend struct best_dcp_frame_rate_test_single; friend struct best_dcp_frame_rate_test_double; friend struct audio_sampling_rate_test; + friend struct subtitle_font_id_change_test2; template friend class ChangeSignaller; void signal_change (ChangeType, int);