updateClock32 = iFrameCount * iMsecsPerFrame;
LOGV("sample clock = %u frameCount(%u) msecsPerFrame(%f)", updateClock32, iFrameCount, iMsecsPerFrame);
- // startup - force clock backwards to compensate for latency
- if (updateClock32 < iDriverLatency)
- {
- LOGV("iStartTime = %u , iDriverLatency = %u", iStartTime, iDriverLatency);
- correction = iStartTime - clockTime32;
- LOGV("latency stall - forcing clock (correction = %d)", correction);
- }
-
- // normal play mode - check delta between PV engine clock and sample clock
- else
- {
- correction = (updateClock32 - iDriverLatency) - (clockTime32 - iStartTime);
- LOGV("clock drift (correction = (updateClock32(%d)-iDriverLatency(%d))-(clockTime32(%d)-iStartTime(%d))= %d)", updateClock32, iDriverLatency, clockTime32, iStartTime, correction);
- }
+ correction = updateClock32 - (clockTime32 - iStartTime);
+ LOGV("ADJ_CLK iDriverLatency %d old clock %d delta %d", iDriverLatency, clockTime32, correction);
// do clock correction if drift exceeds threshold
if (OSCL_ABS(correction) > iMinCorrection)
correction = -iMaxCorrection;
}
updateClock32 = clockTime32 + correction;
- LOGV("drift correction = %d, new clock = %u", correction, updateClock32);
+ LOGV("ADJ_CLK old clock %d correction %d new clock %d", clockTime32, correction, updateClock32);
PVMFMediaClockAdjustTimeStatus adjustmentstatus =
iClock->AdjustClockTime32(clockTime32, timeBaseTime32, updateClock32, PVMF_MEDIA_CLOCK_MSEC, overflowFlag);
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PV2WAY_ENGINE_SDKINFO_LABEL "1234838"
+#define PV2WAY_ENGINE_SDKINFO_LABEL "1235428"
#define PV2WAY_ENGINE_SDKINFO_DATE 0x20100129
#endif //PV_2WAY_SDKINFO_H_INCLUDED