Skip to content

Commit 49920c4

Browse files
committed
RDKTV-35711: Set dimming mode fails
1 parent fb0da09 commit 49920c4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

AVOutput/AVOutputTVHelper.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,13 @@ namespace Plugin {
296296
{
297297
tvDimmingMode_t index = tvDimmingMode_MAX;
298298

299-
if(mode.compare("local") == 0 ) {
299+
if(mode.compare("Local") == 0 ) {
300300
index=tvDimmingMode_Local;
301301
}
302-
else if(mode.compare("fixed") == 0 ) {
302+
else if(mode.compare("Fixed") == 0 ) {
303303
index=tvDimmingMode_Fixed;
304304
}
305-
else if(mode.compare("global") == 0 ) {
305+
else if(mode.compare("Global") == 0 ) {
306306
index=tvDimmingMode_Global;
307307
}
308308
else {
@@ -1469,13 +1469,13 @@ namespace Plugin {
14691469
return 0;
14701470
}
14711471
else if( forParam.compare("DimmingMode") == 0 ) {
1472-
if (strncmp(param.value, "fixed", strlen(param.value))==0) {
1472+
if (strncmp(param.value, "Fixed", strlen(param.value))==0) {
14731473
value=tvDimmingMode_Fixed;
14741474
}
1475-
else if (strncmp(param.value, "local", strlen(param.value))==0) {
1475+
else if (strncmp(param.value, "Local", strlen(param.value))==0) {
14761476
value=tvDimmingMode_Local;
14771477
}
1478-
else if (strncmp(param.value, "global", strlen(param.value))==0) {
1478+
else if (strncmp(param.value, "Global", strlen(param.value))==0) {
14791479
value=tvDimmingMode_Global;
14801480
}
14811481
return 0;
@@ -1612,9 +1612,9 @@ namespace Plugin {
16121612
void AVOutputTV::getDimmingModeStringFromEnum(int value, std::string &toStore)
16131613
{
16141614
const char *color_temp_string[] = {
1615-
[tvDimmingMode_Fixed] = "fixed",
1616-
[tvDimmingMode_Local] = "local",
1617-
[tvDimmingMode_Global] = "global",
1615+
[tvDimmingMode_Fixed] = "Fixed",
1616+
[tvDimmingMode_Local] = "Local",
1617+
[tvDimmingMode_Global] = "Global",
16181618
};
16191619
toStore.clear();
16201620
toStore+=color_temp_string[value];

0 commit comments

Comments
 (0)