From 8053593f2ccff66287c43d20a8f28be9919bff75 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 29 Oct 2013 18:40:48 +0000 Subject: Seek past trim on setting up player pieces. --- src/lib/player.cc | 18 ++++++++++-------- src/lib/video_content.cc | 20 ++++++++++++++++++++ src/lib/video_content.h | 2 ++ 3 files changed, 32 insertions(+), 8 deletions(-) (limited to 'src/lib') diff --git a/src/lib/player.cc b/src/lib/player.cc index 8370a3f9f..53186af6e 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -102,7 +102,9 @@ public: shared_ptr content; shared_ptr decoder; + /** Time of the last video we emitted relative to the start of the DCP */ Time video_position; + /** Time of the last audio we emitted relative to the start of the DCP */ Time audio_position; IncomingVideo repeat_video; @@ -408,20 +410,19 @@ Player::seek (Time t, bool accurate) if (!vc) { continue; } - + + /* s is the offset of t from the start position of this content */ Time s = t - vc->position (); s = max (static_cast