[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-datatype-cvs
Subject: [Datatype-cvs]
From: vkathuria () helixcommunity ! org
Date: 2009-01-30 5:57:05
Message-ID: 200901300600.n0U608IW018390 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/datatype/wm/fileformat
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv18249
Modified Files:
Tag: hxclient_3_4_8_atlas
asf_file_format_file.cpp
Log Message:
Changes to fix seek issue in the Bug 9041:ASF file playback stopped at specific time
Index: asf_file_format_file.cpp
===================================================================
RCS file: /cvsroot/datatype/wm/fileformat/asf_file_format_file.cpp,v
retrieving revision 1.10.2.4.14.1
retrieving revision 1.10.2.4.14.2
diff -u -d -r1.10.2.4.14.1 -r1.10.2.4.14.2
--- asf_file_format_file.cpp 22 Jan 2009 05:09:39 -0000 1.10.2.4.14.1
+++ asf_file_format_file.cpp 30 Jan 2009 05:57:03 -0000 1.10.2.4.14.2
@@ -1065,8 +1065,15 @@
}
else
{
- // The read failed
- retVal = status;
+ // We tried to find another index object but could not, so just
+ // seek to the first packet and read from there.
+ m_ulSeekOffsetRequested = m_ulFirstASFPacketFileOffset;
+ // Set the state saying this is the final seek prior to calling SeekDone()
+ m_ulState = kStateSeekFinalSeekDonePending;
+ // Now seek the file object to the first ASF packet
+ m_pFileObject->Seek(m_ulSeekOffsetRequested, FALSE);
+ // Clear the return value
+ retVal = HXR_OK;
}
if (FAILED(retVal))
{
@@ -1161,6 +1168,8 @@
m_ulState = kStateSeekIndexObjectHeaderReadDonePending;
// Read HX_ASF_OBJECT_HEADER_SIZE bytes
m_pFileObject->Read(HX_ASF_OBJECT_HEADER_SIZE);
+ // Clear the return value
+ retVal = HXR_OK;
}
}
}
_______________________________________________
Datatype-cvs mailing list
Datatype-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/datatype-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic