From f543a0d0e707ab56415f17b0ca6d397394ee8b63 Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Tue, 23 Jul 2019 15:35:31 +0100 Subject: [PATCH] Disable subtitles on Pi4 or if KMS is enabled They also use VG rendering which isn't available if either of those conditions is true. --- omxplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omxplayer.cpp b/omxplayer.cpp index bcd9d876..b20ffb74 100644 --- a/omxplayer.cpp +++ b/omxplayer.cpp @@ -1035,8 +1035,8 @@ int main(int argc, char *argv[]) m_has_video = m_omx_reader.VideoStreamCount(); m_has_audio = m_audio_index_use < 0 ? false : m_omx_reader.AudioStreamCount(); - m_has_subtitle = m_has_external_subtitles || - m_omx_reader.SubtitleStreamCount(); + m_has_subtitle = !is_model_pi4() && !is_fkms_active() && + (m_has_external_subtitles || m_omx_reader.SubtitleStreamCount()); m_loop = m_loop && m_omx_reader.CanSeek(); if (m_audio_extension)