Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions AVOutput/AVOutputTVHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,13 @@ namespace Plugin {
{
tvDimmingMode_t index = tvDimmingMode_MAX;

if(mode.compare("local") == 0 ) {
if(mode.compare("Local") == 0 ) {
index=tvDimmingMode_Local;
}
else if(mode.compare("fixed") == 0 ) {
else if(mode.compare("Fixed") == 0 ) {
index=tvDimmingMode_Fixed;
}
else if(mode.compare("global") == 0 ) {
else if(mode.compare("Global") == 0 ) {
index=tvDimmingMode_Global;
}
else {
Expand Down Expand Up @@ -1514,13 +1514,13 @@ namespace Plugin {
return 0;
}
else if( forParam.compare("DimmingMode") == 0 ) {
if (strncmp(param.value, "fixed", strlen(param.value))==0) {
if (strncmp(param.value, "Fixed", strlen(param.value))==0) {
value=tvDimmingMode_Fixed;
}
else if (strncmp(param.value, "local", strlen(param.value))==0) {
else if (strncmp(param.value, "Local", strlen(param.value))==0) {
value=tvDimmingMode_Local;
}
else if (strncmp(param.value, "global", strlen(param.value))==0) {
else if (strncmp(param.value, "Global", strlen(param.value))==0) {
value=tvDimmingMode_Global;
}
return 0;
Expand Down Expand Up @@ -1683,9 +1683,9 @@ namespace Plugin {
void AVOutputTV::getDimmingModeStringFromEnum(int value, std::string &toStore)
{
const char *color_temp_string[] = {
[tvDimmingMode_Fixed] = "fixed",
[tvDimmingMode_Local] = "local",
[tvDimmingMode_Global] = "global",
[tvDimmingMode_Fixed] = "Fixed",
[tvDimmingMode_Local] = "Local",
[tvDimmingMode_Global] = "Global",
};
toStore.clear();
toStore+=color_temp_string[value];
Expand Down
Loading