Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

dvdplayer: if subtitle player is reset, we must flush overlays

If subtitle player is asked to flush or reset, it will restart it's decoded buffer. This will re-add all overlays so we must flush active overlays too.
  • Loading branch information...
1 parent 7452460 commit 70d4e49c56c8b8cdf4f7f5add0e569f472f3464d @elupus elupus committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/cores/dvdplayer/DVDPlayerSubtitle.cpp
5 xbmc/cores/dvdplayer/DVDPlayerSubtitle.cpp
@@ -131,6 +131,11 @@ void CDVDPlayerSubtitle::SendMessage(CDVDMsg* pMsg)
if (m_pOverlayCodec)
+ /* We must flush active overlays on flush or if we have a file
+ * parser since it will re-populate active items. */
+ if(pMsg->IsType(CDVDMsg::GENERAL_FLUSH) || m_pSubtitleFileParser)
+ m_pOverlayContainer->Clear();
m_lastPts = DVD_NOPTS_VALUE;

0 comments on commit 70d4e49

Please sign in to comment.
Something went wrong with that request. Please try again.