summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sub_time.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sub_time.cc b/src/sub_time.cc
index 3f4d1e9..ed61cb4 100644
--- a/src/sub_time.cc
+++ b/src/sub_time.cc
@@ -156,9 +156,5 @@ Time::from_hms (int h, int m, int s, int ms)
double
Time::all_as_seconds () const
{
- if (!_rate) {
- throw UnknownFrameRateError ();
- }
-
- return _seconds + double (_frames) / _rate.get().fraction ();
+ return seconds() + double(milliseconds ()) / 1000;
}