[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-client-cvs
Subject:    [Client-cvs] core hxplay.cpp,1.185.2.17,1.185.2.17.2.1
From:       qluo () helixcommunity ! org
Date:       2011-05-27 18:55:18
Message-ID: 201105271855.p4RItdSY019733 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/client/core
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv16638

Modified Files:
      Tag: hxclient_3_6_4_atlas
	hxplay.cpp 
Log Message:
removes the duplicated OnBuffering() calls.  CR:jgordon@real.com.


Index: hxplay.cpp
===================================================================
RCS file: /cvsroot/client/core/hxplay.cpp,v
retrieving revision 1.185.2.17
retrieving revision 1.185.2.17.2.1
diff -u -d -r1.185.2.17 -r1.185.2.17.2.1
--- hxplay.cpp	5 Jan 2011 02:46:59 -0000	1.185.2.17
+++ hxplay.cpp	27 May 2011 18:55:15 -0000	1.185.2.17.2.1
@@ -378,6 +378,7 @@
     ,m_bFSBufferingEnd(FALSE)
     ,m_bAllLocalSources(TRUE)
     ,m_b100BufferingToBeSent(TRUE)
+    ,m_uLastBufferingPercent(0)
     ,m_bSetupToBeDone(FALSE)
     ,m_bPostSetupToBeDone(FALSE)
     ,m_bInternalReportError(FALSE)
@@ -2516,9 +2517,17 @@
 		}
 
 		m_b100BufferingToBeSent = TRUE;
-		SetClientState(HX_CLIENT_STATE_PREFETCHING);
-		if (m_pAdviseSink)
+                HXBOOL bEnterBuffering = FALSE;
+
+                if (m_eClientState != HX_CLIENT_STATE_PREFETCHING)
+                {
+                    bEnterBuffering = TRUE;
+                    SetClientState(HX_CLIENT_STATE_PREFETCHING);
+                }
+
+		if (m_pAdviseSink && (bEnterBuffering || uLowestBuffering != m_uLastBufferingPercent))
 		{
+                    m_uLastBufferingPercent = uLowestBuffering;
 		    m_pAdviseSink->OnBuffering(m_BufferingReason, uLowestBuffering);
 		}
 	    }


_______________________________________________
Client-cvs mailing list
Client-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/client-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic