Skip to content

Commit

Permalink
Disable subtitles on Pi4 or if KMS is enabled
Browse files Browse the repository at this point in the history
They also use VG rendering which isn't available if either
of those conditions is true.
  • Loading branch information
6by9 authored and popcornmix committed Jul 23, 2019
1 parent 5c7efb9 commit f543a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omxplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f543a0d

Please sign in to comment.