am d57fbe88: Fixed a race condition where some recording frames may not be released
* commit 'd57fbe887fabd027e644caeaa2139c863143a786': Fixed a race condition where some recording frames may not be released
This commit is contained in:
@@ -359,6 +359,9 @@ void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<
|
|||||||
}
|
}
|
||||||
if (listener != NULL) {
|
if (listener != NULL) {
|
||||||
listener->postDataTimestamp(timestamp, msgType, dataPtr);
|
listener->postDataTimestamp(timestamp, msgType, dataPtr);
|
||||||
|
} else {
|
||||||
|
LOGW("No listener was set. Drop a recording frame.");
|
||||||
|
releaseRecordingFrame(dataPtr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user