diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-17 15:50:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-17 15:50:03 +0100 |
| commit | f46a52979f3ab49403408127141d3fed52bedbc7 (patch) | |
| tree | 1257734f17c984b95aef6d8e35b9b8003c958a2d /src | |
| parent | 4023e615b8365d30a780c0ecfcf5b492819abe6f (diff) | |
When seeking to the start of some content, take trim into account
so that we don't have to run through the whole of the trimmed
portion to get to the data we want.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 8920b3e5b..212bcfe45 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -947,8 +947,8 @@ Player::seek (DCPTime time, bool accurate) BOOST_FOREACH (shared_ptr<Piece> i, _pieces) { if (time < i->content->position()) { - /* Before; seek to 0 */ - i->decoder->seek (ContentTime(), accurate); + /* Before; seek to the start of the content */ + i->decoder->seek (dcp_to_content_time (i, i->content->position()), accurate); i->done = false; } else if (i->content->position() <= time && time < i->content->end()) { /* During; seek to position */ |
