This modifies OMX code for seeking.
Backported-from: hardware/samsung_slsi/exynos5
Change-Id: Ia340e4d9274f7691917e71fa77fd38f0bd037d81
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
pExynosComponent->bBehaviorEOS = OMX_TRUE;
}
- if (pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) {
+ if ((pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) &&
+ (srcInputData->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != OMX_BUFFERFLAG_CODECCONFIG) {
pExynosComponent->checkTimeStamp.needCheckStartTimeStamp = OMX_TRUE;
pExynosComponent->checkTimeStamp.startTimeStamp = srcInputData->timeStamp;
pExynosComponent->checkTimeStamp.nStartFlags = srcInputData->nFlags;
pExynosComponent->bBehaviorEOS = OMX_TRUE;
}
- if (pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) {
+ if ((pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) &&
+ (srcInputData->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != OMX_BUFFERFLAG_CODECCONFIG) {
pExynosComponent->checkTimeStamp.needCheckStartTimeStamp = OMX_TRUE;
pExynosComponent->checkTimeStamp.startTimeStamp = srcInputData->timeStamp;
pExynosComponent->checkTimeStamp.nStartFlags = srcInputData->nFlags;