]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Prebuffering
authorChris Tallon <chris@vomp.tv>
Sat, 29 Apr 2006 15:27:55 +0000 (15:27 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 29 Apr 2006 15:27:55 +0000 (15:27 +0000)
player.cc
vfeed.cc

index ed5d1664f52ce5d8f382df5986aa9989fcc774a8..296b99b619c6370977e5a19e0a20e896f082361e 100644 (file)
--- 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()
index 7890abd81357f762f961cbc4b2d5f755628eca52..679db04f4f560c9041f614599818500f287a971c 100644 (file)
--- 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