projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Give DCPDecoder its own ::position which just returns its internal
[dcpomatic.git]
/
src
/
lib
/
dcp_decoder.cc
diff --git
a/src/lib/dcp_decoder.cc
b/src/lib/dcp_decoder.cc
index a3c42a321a70d824ca8d6a84497dfcec804595c9..03ac66e944aeebfaac1522806d4187e9ceac3966 100644
(file)
--- a/
src/lib/dcp_decoder.cc
+++ b/
src/lib/dcp_decoder.cc
@@
-457,3
+457,9
@@
DCPDecoder::calculate_lazy_digest (shared_ptr<const DCPContent> c) const
}
return d.get ();
}
+
+ContentTime
+DCPDecoder::position () const
+{
+ return ContentTime::from_frames(_offset, _dcp_content->active_video_frame_rate(film())) + _next;
+}