More player debugging for butler video-full states.
[dcpomatic.git] / src / lib / atmos_mxf_content.cc
index 8300c2cd6e4e9026fefe9efa731e56682aeb0d87..5b97edcfd185fa996ba0a9340326781c37743da7 100644 (file)
@@ -93,6 +93,12 @@ AtmosMXFContent::as_xml (xmlpp::Node* node, bool with_paths) const
 DCPTime
 AtmosMXFContent::full_length (shared_ptr<const Film> film) const
 {
-       FrameRateChange const frc (active_video_frame_rate(film), film->video_frame_rate());
+       FrameRateChange const frc (film, shared_from_this());
        return DCPTime::from_frames (llrint (_length * frc.factor()), film->video_frame_rate());
 }
+
+DCPTime
+AtmosMXFContent::approximate_length () const
+{
+       return DCPTime::from_frames (_length, 24);
+}