Skip to content

Commit

Permalink
Fix compiler suggestion to add parentheses to expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Dec 4, 2023
1 parent 760b573 commit d5b0b8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/captions/subtitlereader.cpp
Expand Up @@ -88,7 +88,8 @@ bool SubtitleReader::AddAVSubtitle(AVSubtitle &subtitle,
enableforced = true;
}

if (m_textSubtitlesEnabled && !isExternal || m_avSubtitlesEnabled && isExternal)
if ((m_textSubtitlesEnabled && !isExternal) ||
(m_avSubtitlesEnabled && isExternal))
{
FreeAVSubtitle(subtitle);
return enableforced;
Expand Down

0 comments on commit d5b0b8a

Please sign in to comment.