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
diff --git a/camera/Camera.cpp b/camera/Camera.cpp
index 7efc6d7..743fbb2 100644
--- a/camera/Camera.cpp
+++ b/camera/Camera.cpp
@@ -359,6 +359,9 @@
}
if (listener != NULL) {
listener->postDataTimestamp(timestamp, msgType, dataPtr);
+ } else {
+ LOGW("No listener was set. Drop a recording frame.");
+ releaseRecordingFrame(dataPtr);
}
}