projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve formatting of StateTimer output.
[dcpomatic.git]
/
src
/
lib
/
dcp_subtitle_content.cc
diff --git
a/src/lib/dcp_subtitle_content.cc
b/src/lib/dcp_subtitle_content.cc
index d25e06188b95de79ab189e9cbc03b1a8af5adad2..81e26cf7cb6909c482d5f1c4fba6c24c76ae6be5 100644
(file)
--- a/
src/lib/dcp_subtitle_content.cc
+++ b/
src/lib/dcp_subtitle_content.cc
@@
-36,6
+36,7
@@
using std::list;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
using dcp::raw_convert;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
using dcp::raw_convert;
+using namespace dcpomatic;
DCPSubtitleContent::DCPSubtitleContent (boost::filesystem::path path)
: Content (path)
DCPSubtitleContent::DCPSubtitleContent (boost::filesystem::path path)
: Content (path)
@@
-88,6
+89,12
@@
DCPSubtitleContent::full_length (shared_ptr<const Film> film) const
return DCPTime (_length, frc);
}
return DCPTime (_length, frc);
}
+DCPTime
+DCPSubtitleContent::approximate_length () const
+{
+ return DCPTime (_length, FrameRateChange());
+}
+
string
DCPSubtitleContent::summary () const
{
string
DCPSubtitleContent::summary () const
{