projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove debug code.
[dcpomatic.git]
/
src
/
lib
/
subrip.cc
diff --git
a/src/lib/subrip.cc
b/src/lib/subrip.cc
index 9d207d528d0f04f7060ebc18c5e8d2fbe4228a16..3217a4df0803a1bd4b192e18c6846ff33f4ffaa8 100644
(file)
--- a/
src/lib/subrip.cc
+++ b/
src/lib/subrip.cc
@@
-90,8
+90,7
@@
SubRip::SubRip (shared_ptr<const SubRipContent> content)
throw SubRipError (line, _("a time/position line"), content->path (0));
}
throw SubRipError (line, _("a time/position line"), content->path (0));
}
- current->from = convert_time (p[0]);
- current->to = convert_time (p[2]);
+ current->period = ContentTimePeriod (convert_time (p[0]), convert_time (p[2]));
if (p.size() > 3) {
current->x1 = convert_coordinate (p[3]);
if (p.size() > 3) {
current->x1 = convert_coordinate (p[3]);
@@
-233,5
+232,5
@@
SubRip::length () const
return ContentTime ();
}
return ContentTime ();
}
- return _subtitles.back().to;
+ return _subtitles.back().
period.
to;
}
}