summaryrefslogtreecommitdiff
path: root/src/lib/subtitle.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-20 14:27:00 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-20 14:27:00 +0100
commitf2caad0df1a451e2aff68dfd37277faa72116e12 (patch)
tree3ebf116a6cb847dd099ad113c80b3249d99fa264 /src/lib/subtitle.h
parent21ce34c2cd04a2e7e133ff693b84c054182f4f91 (diff)
Various time-related fixes; fix daft hang on decodes.
Diffstat (limited to 'src/lib/subtitle.h')
-rw-r--r--src/lib/subtitle.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/subtitle.h b/src/lib/subtitle.h
index 2b77eb4cb..52bd35923 100644
--- a/src/lib/subtitle.h
+++ b/src/lib/subtitle.h
@@ -1,3 +1,5 @@
+/* -*- c-basic-offset: 8; default-tab-width: 8; -*- */
+
/*
Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
@@ -65,7 +67,7 @@ class TimedSubtitle
public:
TimedSubtitle (AVSubtitle const &);
- bool displayed_at (double t) const;
+ bool displayed_at (Time) const;
boost::shared_ptr<Subtitle> subtitle () const {
return _subtitle;
@@ -74,8 +76,8 @@ public:
private:
/** the subtitle */
boost::shared_ptr<Subtitle> _subtitle;
- /** display from time in seconds from the start of the film */
- double _from;
- /** display to time in seconds from the start of the film */
- double _to;
+ /** display from time from the start of the content */
+ Time _from;
+ /** display to time from the start of the content */
+ Time _to;
};