From d5b0b8a6bf38d5b9f119a6bf30c650723fc61d5b Mon Sep 17 00:00:00 2001 From: David Hampton Date: Mon, 4 Dec 2023 11:17:43 -0500 Subject: [PATCH] Fix compiler suggestion to add parentheses to expression. --- mythtv/libs/libmythtv/captions/subtitlereader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mythtv/libs/libmythtv/captions/subtitlereader.cpp b/mythtv/libs/libmythtv/captions/subtitlereader.cpp index 4a064af11f9..c8519845815 100644 --- a/mythtv/libs/libmythtv/captions/subtitlereader.cpp +++ b/mythtv/libs/libmythtv/captions/subtitlereader.cpp @@ -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;