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

Commit 2db90445 authored by James Dong's avatar James Dong
Browse files

Don't drop video frames but to release them.

bug - 3259009

Change-Id: Ib7634f10a7fe7b7ce7014b79b07957d194bae1a7
parent 9889e2b1
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");