Skip to content

Commit

Permalink
Fix LoadSubtitles when using Qt in the range [6.0, 6.3).
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jul 9, 2023
1 parent 4f2aea0 commit cce0fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/captions/textsubtitleparser.cpp
Expand Up @@ -332,8 +332,8 @@ void TextSubtitleParser::LoadSubtitles(bool inBackground)
isUtf8 = (textCodec != nullptr);
#elif QT_VERSION < QT_VERSION_CHECK(6,3,0)
auto qba_encoding = QStringConverter::encodingForData(qba);
isUtf8 = qba_encoding.has_value
&& (qba_encoding.value == QStringConverter::Utf8);
isUtf8 = qba_encoding.has_value()
&& (qba_encoding.value() == QStringConverter::Utf8);
#else
isUtf8 = qba.isValidUtf8();
#endif
Expand Down

0 comments on commit cce0fcf

Please sign in to comment.