Camera: Fix incorrect pointer types
- Array of streams given to configure_streams() must be an array of
pointers to streams, to allow framework to fulfill stream structure
lifetime guarantees.
- buffer_handle_t needs extra level of indirection to match HAL1 & 2.
Change-Id: Iee071da39218a748933c3dfa7bccb66fe92c05f1
diff --git a/include/hardware/camera3.h b/include/hardware/camera3.h
index 94a8e39..be0154f 100644
--- a/include/hardware/camera3.h
+++ b/include/hardware/camera3.h
@@ -508,8 +508,8 @@
uint32_t num_streams;
/**
- * An array of camera streams, defining the input/output configuration for
- * the camera HAL device.
+ * An array of camera stream pointers, defining the input/output
+ * configuration for the camera HAL device.
*
* At most one input-capable stream may be defined (INPUT or BIDIRECTIONAL)
* in a single configuration.
@@ -517,7 +517,7 @@
* At least one output-capable stream must be defined (OUTPUT or
* BIDIRECTIONAL).
*/
- camera3_stream_t *streams;
+ camera3_stream_t **streams;
} camera3_stream_configuration_t;
@@ -589,7 +589,7 @@
* should inspect the passed-in buffers to determine any platform-private
* pixel format information.
*/
- buffer_handle_t *buffers;
+ buffer_handle_t **buffers;
} camera3_stream_buffer_set_t;