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

Commit 4ee787f9 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Don't drop video frames but to release them."

parents 9ef0376e 2db90445
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1015,7 +1015,10 @@ void CameraService::Client::dataCallbackTimestamp(nsecs_t timestamp,

    sp<Client> client = getClientFromCookie(user);
    if (client == 0) return;
    if (!client->lockIfMessageWanted(msgType)) return;
    if (!client->lockIfMessageWanted(msgType)) {
        client->releaseRecordingFrame(dataPtr);
        return;
    }

    if (dataPtr == 0) {
        LOGE("Null data returned in data with timestamp callback");