Permalink
Browse files

Subtitles: Avoid changing subtitle state in the decoder thread.

Use the proper API to defer subtitle changes to the UI event loop, to
avoid creating or deleting MythUI objects in a non-UI thread.
Refs #10740
  • Loading branch information...
1 parent 477e12f commit f0f37a55d67ffffa27d51ebc6b2cb48589c820fc @stichnot stichnot committed May 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 mythtv/libs/libmythtv/mythplayer.cpp
@@ -628,8 +628,7 @@ void MythPlayer::ReinitVideo(void)
if (textDisplayMode)
{
- DisableCaptions(textDisplayMode, false);
- SetCaptionsEnabled(true, false);
+ EnableSubtitles(true);
}
}

0 comments on commit f0f37a5

Please sign in to comment.