From 904ace7294bc7843f11cf41010583b5874336565 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 29 Apr 2006 15:27:55 +0000 Subject: [PATCH] Prebuffering --- player.cc | 8 +++++--- vfeed.cc | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/player.cc b/player.cc index ed5d166..296b99b 100644 --- a/player.cc +++ b/player.cc @@ -565,11 +565,11 @@ void Player::threadMethod() preBuffering = false; preBufferTotal = 0; - afeed.start(); - video->sync(); audio->sync(); audio->play(); + video->sync(); video->pause(); + afeed.start(); } } @@ -597,6 +597,7 @@ void Player::threadMethod() { thisWrite = demuxer.put(threadBuffer + writeLength, thisRead - writeLength); writeLength += thisWrite; + logger->log("Player", Log::DEBUG, "Put %i to demuxer", thisWrite); if (!thisWrite) { @@ -675,7 +676,8 @@ void Player::setEndTS() void Player::test1() { logger->log("Player", Log::DEBUG, "PLAYER TEST 1"); - video->setAspectRatio(Video::ASPECT4X3); + video->play(); +// video->setAspectRatio(Video::ASPECT4X3); } void Player::test2() diff --git a/vfeed.cc b/vfeed.cc index 7890abd..679db04 100644 --- a/vfeed.cc +++ b/vfeed.cc @@ -71,7 +71,7 @@ void VFeed::threadMethod() #endif if (vlen) { -// Log::getInstance()->log("VFeed", Log::DEBUG, "Written %i", vlen); + // Log::getInstance()->log("VFeed", Log::DEBUG, "Written %i", vlen); cb.call(this); } else -- 2.39.5