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

Commit 5d03729b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Camera: fix wrong vector size bug"

parents 0d51135d e2e122c2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -192,12 +192,14 @@ status_t BnCameraClient::onTransact(
            timestamps.reserve(n);
            handles.reserve(n);
            for (uint32_t i = 0; i < n; i++) {
                res = data.readInt64(&timestamps[i]);
                nsecs_t t;
                res = data.readInt64(&t);
                if (res != OK) {
                    ALOGE("%s: Failed to read timestamp[%d]: %s (%d)",
                            __FUNCTION__, i, strerror(-res), res);
                    return BAD_VALUE;
                }
                timestamps.push_back(t);
            }
            for (uint32_t i = 0; i < n; i++) {
                native_handle_t* handle = data.readNativeHandle();
+3 −1
Original line number Diff line number Diff line
@@ -146,12 +146,14 @@ status_t BnCameraRecordingProxyListener::onTransact(
            timestamps.reserve(n);
            handles.reserve(n);
            for (uint32_t i = 0; i < n; i++) {
                res = data.readInt64(&timestamps[i]);
                nsecs_t t;
                res = data.readInt64(&t);
                if (res != OK) {
                    ALOGE("%s: Failed to read timestamp[%d]: %s (%d)",
                            __FUNCTION__, i, strerror(-res), res);
                    return BAD_VALUE;
                }
                timestamps.push_back(t);
            }
            for (uint32_t i = 0; i < n; i++) {
                native_handle_t* handle = data.readNativeHandle();