summaryrefslogtreecommitdiff
path: root/src/raw_subtitle.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-14 17:39:32 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-14 17:39:32 +0000
commit135e91144ced358a8d0c578384e8ce4005a2bcd0 (patch)
tree55386ff0f927bc9fecf54b3a4e0c1725ecf6b2b8 /src/raw_subtitle.cc
parent972d33c500c9de02aa007440f665637e455610c1 (diff)
Simplify time representation; better in-tree DCP subtitle parser.
Diffstat (limited to 'src/raw_subtitle.cc')
-rw-r--r--src/raw_subtitle.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/raw_subtitle.cc b/src/raw_subtitle.cc
index 24f1a8e..818bb15 100644
--- a/src/raw_subtitle.cc
+++ b/src/raw_subtitle.cc
@@ -24,13 +24,5 @@ using namespace sub;
bool
sub::operator< (RawSubtitle const & a, RawSubtitle const & b)
{
- if (a.from.frame() && b.from.frame()) {
- return a.from.frame().get() < b.from.frame().get();
- }
-
- if (a.from.metric() && b.from.metric()) {
- return a.from.metric().get() < b.from.metric().get();
- }
-
- assert (false);
+ return a.from < b.from;
}