Lines Matching refs:currentPos
554 int64 currentPos = position;
556 error = _SeekToKeyFrameBackward(currentPos);
557 TRACE("_ReadUncachedFrames() - seeked to position: %lld\n", currentPos);
558 // if (position - currentPos > 100000)
560 // "keyframe was far away: %lld -> %lld\n", position, currentPos);
566 Buffer* cacheBuffer = _FindUsableBufferFor(currentPos);
568 "position: %lld/%lld\n", cacheBuffer, currentPos, position);
569 error = _ReadBuffer(cacheBuffer, currentPos, time);
579 currentPos += cacheBuffer->size;
591 int64 nextKeyFrame = currentPos;
593 while (currentPos < nextKeyFrame) {
596 Buffer* cacheBuffer = _FindBufferAtFrame(currentPos);
598 cacheBuffer = _FindUsableBufferFor(currentPos);
599 if (_ReadBuffer(cacheBuffer, currentPos, time) != B_OK)
603 currentPos += cacheBuffer->size;