Fix failure on 1-frame-back seek (#604).
[dcpomatic.git] / src / lib / content_subtitle.cc
index 93e0677bb7c3c49031555af796a3425ae49ccd4c..4eed8b4b2b0b03941428bf97f658634e8f8c6c4c 100644 (file)
@@ -23,9 +23,9 @@ ContentTimePeriod
 ContentTextSubtitle::period () const
 {
        /* XXX: assuming we have some subs and they are all at the same time */
-       assert (!subs.empty ());
+       DCPOMATIC_ASSERT (!subs.empty ());
        return ContentTimePeriod (
-               ContentTime::from_seconds (double (subs.front().in().to_ticks()) / 250),
-               ContentTime::from_seconds (double (subs.front().out().to_ticks()) / 250)
+               ContentTime::from_seconds (subs.front().in().as_seconds()),
+               ContentTime::from_seconds (subs.front().out().as_seconds())
                );
 }