Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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...
commit 70d4e49c56c8b8cdf4f7f5add0e569f472f3464d 1 parent 7452460
@elupus elupus authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/cores/dvdplayer/DVDPlayerSubtitle.cpp
View
5 xbmc/cores/dvdplayer/DVDPlayerSubtitle.cpp
@@ -131,6 +131,11 @@ void CDVDPlayerSubtitle::SendMessage(CDVDMsg* pMsg)
if (m_pOverlayCodec)
m_pOverlayCodec->Flush();
+ /* 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.