[Player-cvs] hxclientkit/src CHXClientPlayer.cpp,1.35.2.5,1.35.2.6

[Player-cvs] hxclientkit/src CHXClientPlayer.cpp,1.35.2.5,1.35.2.6

bobclark at helixcommunity.org bobclark at helixcommunity.org
Wed Feb 28 15:50:10 PST 2007


Update of /cvsroot/player/hxclientkit/src
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv20748

Modified Files:
      Tag: hxclient_1_5_0_cayenne
	CHXClientPlayer.cpp 
Log Message:
fix seek-range problem -- if live, then max out at the preferred size of the super buffer

Index: CHXClientPlayer.cpp
===================================================================
RCS file: /cvsroot/player/hxclientkit/src/CHXClientPlayer.cpp,v
retrieving revision 1.35.2.5
retrieving revision 1.35.2.6
diff -u -d -r1.35.2.5 -r1.35.2.6
--- CHXClientPlayer.cpp	2 Nov 2006 01:53:21 -0000	1.35.2.5
+++ CHXClientPlayer.cpp	28 Feb 2007 23:50:07 -0000	1.35.2.6
@@ -727,6 +727,15 @@
         {
                 hasBuffered = ( 0 != SUCCEEDED( m_pIHXClientRecordService->GetSeekRange( *pMinPosition, *pWritePosition ) ) );
                 *pMaxPosition = *pMinPosition + m_pIHXClientRecordService->GetSuperBufferSize();
+                
+                if (IsLive())
+                {
+                    UINT32 proposedMaxPosition = m_pIHXClientRecordService->GetPreferredSuperBufferSize();
+                    if (proposedMaxPosition > *pMaxPosition)
+                    {
+                        *pMaxPosition = proposedMaxPosition;
+                    }
+                }
         }
         else if ( m_pClipSink )
         {




More information about the Player-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.