From ec7ed6e9b5bde153eabf81a57741939826898997 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 11 Jun 2006 18:33:14 +0000 Subject: [PATCH] Player now sets frame number to Demuxer --- player.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/player.cc b/player.cc index 3b76c3b..82c28f3 100644 --- a/player.cc +++ b/player.cc @@ -146,7 +146,7 @@ void Player::setLengthFrames(ULONG length) logger->log("Player", Log::DEBUG, "Player has received length frames of %lu", lengthFrames); } -ULLONG Player::getEndTS() // used internally (jump to percent) +ULLONG Player::getEndTS() // FIXME delme - used only by bar clocks until current frame code is done { long long rendTS = endTS - startTS; if (rendTS < 0) rendTS += 8589934592ULL; @@ -270,6 +270,7 @@ int Player::playInt(bool* doUnlock) audio->reset(); video->reset(); demuxer->reset(); + demuxer->setFrameNum(0); if (!isRadio) demuxer->seek(); videoStartup = true; @@ -493,6 +494,7 @@ void Player::restartAt(ULLONG timecode) demuxer->flush(); if (!isRadio) demuxer->seek(); feedPosition = newPosition; + demuxer->setFrameNum(wantedFrameNumber); videoStartup = true; afeed.start(); vfeed.start(); @@ -523,6 +525,7 @@ void Player::restartAtFrame(ULONG newFrame) demuxer->flush(); if (!isRadio) demuxer->seek(); feedPosition = newPosition; + demuxer->setFrameNum(newFrame); videoStartup = true; afeed.start(); vfeed.start(); -- 2.39.5