Permalink
Browse files

dvdplayer: update play state before sending state to a/v players

  • Loading branch information...
1 parent 114a9f3 commit 4581fa8eda0b4a5b4cd6aabba47fbfac52d35afd @FernetMenta FernetMenta committed Feb 27, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -1718,7 +1718,11 @@ void CDVDPlayer::UpdateTimestamps(CCurrentStream& current, DemuxPacket* pPacket)
{
current.dts_state = current.dts;
if (current.inited)
+ {
+ // make sure we send no outdated state to a/v players
+ UpdatePlayState(0);
SendPlayerMessage(new CDVDMsgType<SPlayerState>(CDVDMsg::PLAYER_DISPLAYTIME, m_StateInput), current.player);
+ }
else
{
CSingleLock lock(m_StateSection);

0 comments on commit 4581fa8

Please sign in to comment.