[Protocol-dev] CR: Please review the changes in protocol/transport/common/system for porting Atlas for Windows Mobile 5.0
anshuman asingh at adroit-inc.comSkipped content of type multipart/alternative-------------- next part --------------
Index: transbuf.cpp
===================================================================
RCS file: /cvsroot/protocol/transport/common/system/transbuf.cpp,v
retrieving revision 1.36
diff -u -r1.36 transbuf.cpp
--- transbuf.cpp 29 Apr 2007 03:33:23 -0000 1.36
+++ transbuf.cpp 10 Aug 2007 04:55:15 -0000
@@ -1423,6 +1423,18 @@
UINT32 ulReasonCode
)
{
+ // if a seek has been issued and we are yet to receive play response OR
+ // are still waiting to flush the packets since a post seek packet has
+ // not been received yet, ignore this packet end since it must be
+ // from the pre-seek. This can happen if a user seeks near the very end of the clip
+ // and the server has already sent the 5 end of packet notifications but the client
+ // is yet to receive them and has issues a Seek request to the server.. and receives
+ // these end packet notifications after sending the seek request.
+ if (m_uSeekCount > 0 || m_bWaitingForSeekFlush)
+ {
+ return;
+ }
+
if (m_bIsEnded)
{
return;