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
|
||||
* that it really is okay to turn it off.
|
||||
*/
|
||||
|
||||
const char *hfrValues = params.get(KEY_VIDEO_HFR_VALUES);
|
||||
if (hfrValues && *hfrValues && ! strstr(hfrValues, "off")) {
|
||||
char tmp[strlen(hfrValues) + 4 + 1];
|
||||
sprintf(tmp, "%s,off", hfrValues);
|
||||
params.set(KEY_VIDEO_HFR_VALUES, tmp);
|
||||
const char *hfrModeValues = params.get(KEY_VIDEO_HFR_VALUES);
|
||||
if (hfrModeValues && !strstr(hfrModeValues, "off")) {
|
||||
char hfrModes[strlen(hfrModeValues) + 4 + 1];
|
||||
sprintf(hfrModes, "%s,off", hfrModeValues);
|
||||
params.set(KEY_VIDEO_HFR_VALUES, hfrModes);
|
||||
}
|
||||
|
||||
/* Enforce video-snapshot-supported to true */
|
||||
|
|
Loading…
Reference in New Issue