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

Commit b3e40847 authored by James Dong's avatar James Dong
Browse files

Fixed a race condition where some recording frames may not be released

bug - 3258924

Change-Id: I4f30d04a713676f5da40e6a7dd861510cc041f9b
parent d28b0e70
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);
    }
}