Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df1f37ad authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

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
parents 5c2ccf1a b3e40847
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -359,6 +359,9 @@ void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<
    }
    if (listener != NULL) {
        listener->postDataTimestamp(timestamp, msgType, dataPtr);
    } else {
        LOGW("No listener was set. Drop a recording frame.");
        releaseRecordingFrame(dataPtr);
    }
}