Skip to content

Commit

Permalink
tidy: Fix a few "braces around statements" warnings in the scheduler.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Nov 3, 2021
1 parent 1c38021 commit 4ce98b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -4371,29 +4371,39 @@ void Scheduler::AddNewRecords(void)
QString pwrpri = "channel.recpriority + capturecard.recpriority";

if (prefinputpri)
{
pwrpri += QString(" + "
"IF(capturecard.cardid = RECTABLE.prefinput, 1, 0) * %1")
.arg(prefinputpri);
}

if (hdtvpriority)
{
pwrpri += QString(" + IF(program.hdtv > 0 OR "
"FIND_IN_SET('HDTV', program.videoprop) > 0, 1, 0) * %1")
.arg(hdtvpriority);
}

if (wspriority)
{
pwrpri += QString(" + "
"IF(FIND_IN_SET('WIDESCREEN', program.videoprop) > 0, 1, 0) * %1")
.arg(wspriority);
}

if (slpriority)
{
pwrpri += QString(" + "
"IF(FIND_IN_SET('SIGNED', program.subtitletypes) > 0, 1, 0) * %1")
.arg(slpriority);
}

if (onscrpriority)
{
pwrpri += QString(" + "
"IF(FIND_IN_SET('ONSCREEN', program.subtitletypes) > 0, 1, 0) * %1")
.arg(onscrpriority);
}

if (ccpriority)
{
Expand All @@ -4412,9 +4422,11 @@ void Scheduler::AddNewRecords(void)
}

if (adpriority)
{
pwrpri += QString(" + "
"IF(FIND_IN_SET('VISUALIMPAIR', program.audioprop) > 0, 1, 0) * %1")
.arg(adpriority);
}

MSqlQuery result(m_dbConn);

Expand Down

0 comments on commit 4ce98b4

Please sign in to comment.