klte-common: Clean up HFR code
Change-Id: Id95d1dbda2a8f91efee35b3fe16946f31d5f6b7c
This commit is contained in:
parent
1fb8c996a6
commit
8ffebf5fff
|
@ -114,12 +114,11 @@ static char *camera_fixup_getparams(int __attribute__((unused)) id,
|
||||||
* this can be turned off, fixup the params to tell the Camera
|
* this can be turned off, fixup the params to tell the Camera
|
||||||
* that it really is okay to turn it off.
|
* that it really is okay to turn it off.
|
||||||
*/
|
*/
|
||||||
|
const char *hfrModeValues = params.get(KEY_VIDEO_HFR_VALUES);
|
||||||
const char *hfrValues = params.get(KEY_VIDEO_HFR_VALUES);
|
if (hfrModeValues && !strstr(hfrModeValues, "off")) {
|
||||||
if (hfrValues && *hfrValues && ! strstr(hfrValues, "off")) {
|
char hfrModes[strlen(hfrModeValues) + 4 + 1];
|
||||||
char tmp[strlen(hfrValues) + 4 + 1];
|
sprintf(hfrModes, "%s,off", hfrModeValues);
|
||||||
sprintf(tmp, "%s,off", hfrValues);
|
params.set(KEY_VIDEO_HFR_VALUES, hfrModes);
|
||||||
params.set(KEY_VIDEO_HFR_VALUES, tmp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enforce video-snapshot-supported to true */
|
/* Enforce video-snapshot-supported to true */
|
||||||
|
|
Loading…
Reference in New Issue