CameraClient: Enables meta data notifications
- Adds the needed functionality for enabling/disabling
metadata messages depending on the camera client
commands.
Change-Id: Iab597d5519b8fb85ee21c824ec19e9aaec9b5219
diff --git a/services/camera/libcameraservice/api1/CameraClient.cpp b/services/camera/libcameraservice/api1/CameraClient.cpp
index 4491a05..5ab99ba 100644
--- a/services/camera/libcameraservice/api1/CameraClient.cpp
+++ b/services/camera/libcameraservice/api1/CameraClient.cpp
@@ -689,6 +689,10 @@
enableMsgType(CAMERA_MSG_STATS_DATA);
} else if (cmd == CAMERA_CMD_HISTOGRAM_OFF) {
disableMsgType(CAMERA_MSG_STATS_DATA);
+ } else if (cmd == CAMERA_CMD_METADATA_ON) {
+ enableMsgType(CAMERA_MSG_META_DATA);
+ } else if (cmd == CAMERA_CMD_METADATA_OFF) {
+ disableMsgType(CAMERA_MSG_META_DATA);
#endif
}