diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-16 16:26:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-16 16:26:37 +0000 |
| commit | aabc7a911b874d8e5e0929c7c031d06029fe96b5 (patch) | |
| tree | 2b32b7908e251699e52829022caa44c5b4419467 /src/lib/video_decoder.cc | |
| parent | 1fe3f08c50ba230c2eb2506d51287878679bdcb7 (diff) | |
Various hacks to subtitles etc.
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index d3b441fbf..cb55b4d18 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -44,7 +44,7 @@ void VideoDecoder::emit_video (shared_ptr<Image> image, SourceFrame f) { shared_ptr<Subtitle> sub; - if (_timed_subtitle && _timed_subtitle->displayed_at (double (video_frame()) / _film->frames_per_second())) { + if (_timed_subtitle && _timed_subtitle->displayed_at (f / _film->frames_per_second())) { sub = _timed_subtitle->subtitle (); } |
