if (config)
{
- if (!strcasecmp(config, "On"))
+ if (!STRCASECMP(config, "On"))
{
logger->log("Command", Log::INFO, "Config says Power After Boot = On");
}
- else if (!strcasecmp(config, "Off"))
+ else if (!STRCASECMP(config, "Off"))
{
logger->log("Command", Log::INFO, "Config says Power After Boot = Off");
doStandby();
delete[] config;
return; // quit here
}
- else if (!strcasecmp(config, "Last state"))
+ else if (!STRCASECMP(config, "Last state"))
{
char* lastPowerState = vdr->configLoad("General", "Last Power State");
if (lastPowerState)
{
- if (!strcasecmp(lastPowerState, "On"))
+ if (!STRCASECMP(lastPowerState, "On"))
{
logger->log("Command", Log::INFO, "Config says Last Power State = On");
}
- else if (!strcasecmp(lastPowerState, "Off"))
+ else if (!STRCASECMP(lastPowerState, "Off"))
{
logger->log("Command", Log::INFO, "Config says Last Power State = Off");
doStandby();
if (config)
{
- if (!strcasecmp(config, "S-Video"))
+ if (!STRCASECMP(config, "S-Video"))
{
logger->log("Command", Log::INFO, "Switching to S-Video as Connection=%s", config);
video->setConnection(Video::SVIDEO);
if (config)
{
- if (!strcasecmp(config, "New"))
+ if (!STRCASECMP(config, "New"))
{
logger->log("Command", Log::INFO, "Switching to New remote type");
remote->setRemoteType(Remote::NEWREMOTE);
config = vdr->configLoad("TV", "Aspect");
if (config)
{
- if (!strcasecmp(config, "16:9"))
+ if (!STRCASECMP(config, "16:9"))
{
logger->log("Command", Log::INFO, "/// Switching to TV aspect 16:9");
video->setTVsize(Video::ASPECT16X9);
config = vdr->configLoad("TV", "Widemode");
if (config)
{
- if (!strcasecmp(config, "Letterbox"))
+ if (!STRCASECMP(config, "Letterbox"))
{
logger->log("Command", Log::INFO, "Setting letterbox mode");
video->setMode(Video::LETTERBOX);