Merge "Camera: Do not treat non-increasing timestamp as fatal"

gugelfrei
TreeHugger Robot 6 years ago committed by Android (Google) Code Review
commit 12622e385e

@ -269,8 +269,7 @@ status_t Camera3OutputStream::returnBufferCheckedLocked(
}
if (timestamp == 0) {
ALOGE("%s: Stream %d: timestamp shouldn't be 0", __FUNCTION__, mId);
return BAD_VALUE;
ALOGW("%s: Stream %d: timestamp shouldn't be 0", __FUNCTION__, mId);
}
/* Certain consumers (such as AudioSource or HardwareComposer) use

@ -663,9 +663,8 @@ status_t Camera3Stream::returnBuffer(const camera3_stream_buffer &buffer,
removeOutstandingBuffer(buffer);
if (timestampIncreasing && timestamp != 0 && timestamp <= mLastTimestamp) {
ALOGE("%s: Stream %d: timestamp %" PRId64 " is not increasing. Prev timestamp %" PRId64,
ALOGW("%s: Stream %d: timestamp %" PRId64 " is not increasing. Prev timestamp %" PRId64,
__FUNCTION__, mId, timestamp, mLastTimestamp);
return BAD_VALUE;
}
mLastTimestamp = timestamp;

Loading…
Cancel
Save