Merge "gralloc1: Get color space from metadata handle"
diff --git a/libgralloc1/gr_buf_mgr.cpp b/libgralloc1/gr_buf_mgr.cpp
index 9974834..c5d91d9 100644
--- a/libgralloc1/gr_buf_mgr.cpp
+++ b/libgralloc1/gr_buf_mgr.cpp
@@ -692,8 +692,11 @@
break;
}
break;
+ } else if (getMetaData(hnd, GET_COLOR_SPACE, color_space) != 0) {
+ *color_space = 0;
}
- if (getMetaData(hnd, GET_COLOR_SPACE, &color_metadata) != 0) {
+#else
+ if (getMetaData(hnd, GET_COLOR_SPACE, color_space) != 0) {
*color_space = 0;
}
#endif