commit | 76c4cb50e555d6bcd9fcd11822dc893c0324db84 | [log] [tgz] |
---|---|---|
author | James Dong <[email protected]> | Sat Nov 14 06:44:11 2009 -0800 |
committer | James Dong <[email protected]> | Sat Nov 14 06:51:28 2009 -0800 |
tree | edff0c622cbc5f92a0ac5fcf6923d1b7ae017be5 | |
parent | 9d8ed53e28d6de6aba89b12ebc8871d6346e0ba5 [diff] |
Fix an incorrect time profiling bug in camera MIO The problem was that when DoStop or DoReset was called, the first sample time stamp,iAudioFirstFrameTs, was reset right way, which made the VF detection calculation in the writeComplete() callback incorrect. The solution is to move the iAudioFirstFrameTs reset logic to DoStart() to make sure that we still always has the correct initialized first sample time stamp.