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

Commit dad308b4 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by android-build-merger
Browse files

Merge "Camera: fix wrong vector size bug"

am: 5d03729b

Change-Id: I54418891571c56c664f3c2b235da4d57fd154bd2
parents b7df1484 5d03729b
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();