X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.h;h=fc3a531faf8293b69d484581810b0ea3fd351801;hb=9c5a7319d807063c22d6bc165ee414ce82e26965;hp=3172b9c8d1c77b3ad19a3d4b034b88f744181311;hpb=8353a009aae1a604251c0160193c39741c2fa27c;p=dcpomatic.git diff --git a/src/lib/content.h b/src/lib/content.h index 3172b9c8d..fc3a531fa 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -27,6 +27,7 @@ #include #include #include "types.h" +#include "dcpomatic_time.h" namespace cxml { class Node; @@ -57,6 +58,9 @@ public: virtual void examine (boost::shared_ptr); virtual std::string summary () const = 0; + /** @return Technical details of this content; these are written to logs to + * help with debugging. + */ virtual std::string technical_summary () const; virtual std::string information () const = 0; virtual void as_xml (xmlpp::Node *) const; @@ -117,7 +121,7 @@ public: } DCPTime end () const { - return position() + length_after_trim() - 1; + return position() + length_after_trim(); } DCPTime length_after_trim () const;