Give DCPDecoder its own ::position which just returns its internal
[dcpomatic.git] / src / lib / dcp_decoder.cc
index a3c42a321a70d824ca8d6a84497dfcec804595c9..03ac66e944aeebfaac1522806d4187e9ceac3966 100644 (file)
@@ -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;
+}