QCamera2: Avoid RAW+YUV for preview during video recording
- The RAW stream will not get added if the
recording hint is set.
Change-Id: Ie03f5d776b6ce5fe843ee553634eb8440ee03df3
diff --git a/QCamera2/HAL/QCamera2HWI.cpp b/QCamera2/HAL/QCamera2HWI.cpp
index 1000497..3ae9c33 100644
--- a/QCamera2/HAL/QCamera2HWI.cpp
+++ b/QCamera2/HAL/QCamera2HWI.cpp
@@ -2877,7 +2877,8 @@
property_get("persist.camera.raw_yuv", value, "0");
raw_yuv = atoi(value) > 0 ? true : false;
- if ( raw_yuv ) {
+ if ( raw_yuv &&
+ ( mParameters.getRecordingHintValue() == false ) ) {
rc = addStreamToChannel(pChannel,
CAM_STREAM_TYPE_RAW,
preview_raw_stream_cb_routine,