diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-29 21:47:29 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-29 21:49:12 +0000 |
| commit | 4c2ae591ee17599b4fbb7ffc24a06f27ed985c05 (patch) | |
| tree | e7b154bed1333d4109717226a9462d7e11ab3490 | |
| parent | 10e4674e2a0d4d2652ad84372daa2783e4744e62 (diff) | |
Fix typo causing incorrectly timed subtitles when their content
position is non-zero.
Reported-by: Thierry Journet
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/player.cc | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2014-01-29 Carl Hetherington <cth@carlh.net> + + * Fix missing subtitles when subtitled content is at a non-zero position. + 2014-01-28 Carl Hetherington <cth@carlh.net> * Use Mbit/s instead of the incorrect MBps. diff --git a/src/lib/player.cc b/src/lib/player.cc index ce5109733..1c54d0fc5 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -695,7 +695,7 @@ Player::update_subtitle () to = rint (to * vc->video_frame_rate() / _film->video_frame_rate()); } - _out_subtitle.from = from * piece->content->position (); + _out_subtitle.from = from + piece->content->position (); _out_subtitle.to = to + piece->content->position (); } |
