X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent_subtitle.cc;h=c4cfafad5bf99f243e0a63bc6ef579ba69018826;hb=ef4b082c5d7452a34ce45f6d3bead46a7e846faf;hp=93e0677bb7c3c49031555af796a3425ae49ccd4c;hpb=39029279954b1f346d3ba28ec12c58211bfa7436;p=dcpomatic.git diff --git a/src/lib/content_subtitle.cc b/src/lib/content_subtitle.cc index 93e0677bb..c4cfafad5 100644 --- a/src/lib/content_subtitle.cc +++ b/src/lib/content_subtitle.cc @@ -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().to_seconds()), + ContentTime::from_seconds (subs.front().out().to_seconds()) ); }