Skip to content

Commit bbf60a9

Browse files
benjaminqcoxarjunbinu
authored andcommitted
RDKEMW-5512: Implement a fix for the SaveTVDimmingMode failure
1 parent 343ef1c commit bbf60a9

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
@@ -321,13 +321,13 @@ namespace Plugin {
321321
{
322322
tvDimmingMode_t index = tvDimmingMode_MAX;
323323

324-
if(mode.compare("local") == 0 ) {
324+
if(mode.compare("Local") == 0 ) {
325325
index=tvDimmingMode_Local;
326326
}
327-
else if(mode.compare("fixed") == 0 ) {
327+
else if(mode.compare("Fixed") == 0 ) {
328328
index=tvDimmingMode_Fixed;
329329
}
330-
else if(mode.compare("global") == 0 ) {
330+
else if(mode.compare("Global") == 0 ) {
331331
index=tvDimmingMode_Global;
332332
}
333333
else {
@@ -1514,13 +1514,13 @@ namespace Plugin {
15141514
return 0;
15151515
}
15161516
else if( forParam.compare("DimmingMode") == 0 ) {
1517-
if (strncmp(param.value, "fixed", strlen(param.value))==0) {
1517+
if (strncmp(param.value, "Fixed", strlen(param.value))==0) {
15181518
value=tvDimmingMode_Fixed;
15191519
}
1520-
else if (strncmp(param.value, "local", strlen(param.value))==0) {
1520+
else if (strncmp(param.value, "Local", strlen(param.value))==0) {
15211521
value=tvDimmingMode_Local;
15221522
}
1523-
else if (strncmp(param.value, "global", strlen(param.value))==0) {
1523+
else if (strncmp(param.value, "Global", strlen(param.value))==0) {
15241524
value=tvDimmingMode_Global;
15251525
}
15261526
return 0;
@@ -1683,9 +1683,9 @@ namespace Plugin {
16831683
void AVOutputTV::getDimmingModeStringFromEnum(int value, std::string &toStore)
16841684
{
16851685
const char *color_temp_string[] = {
1686-
[tvDimmingMode_Fixed] = "fixed",
1687-
[tvDimmingMode_Local] = "local",
1688-
[tvDimmingMode_Global] = "global",
1686+
[tvDimmingMode_Fixed] = "Fixed",
1687+
[tvDimmingMode_Local] = "Local",
1688+
[tvDimmingMode_Global] = "Global",
16891689
};
16901690
toStore.clear();
16911691
toStore+=color_temp_string[value];

0 commit comments

Comments
 (0)