Skip to content

Commit

Permalink
dvdplayer: do not pass display time to a/v players if not initied
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Feb 27, 2013
1 parent 7bd1655 commit f803091
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/cores/dvdplayer/DVDPlayer.cpp
Expand Up @@ -1717,7 +1717,13 @@ void CDVDPlayer::UpdateTimestamps(CCurrentStream& current, DemuxPacket* pPacket)
|| abs(current.dts - current.dts_state) > DVD_MSEC_TO_TIME(200))
{
current.dts_state = current.dts;
SendPlayerMessage(new CDVDMsgType<SPlayerState>(CDVDMsg::PLAYER_DISPLAYTIME, m_StateInput), current.player);
if (current.inited)
SendPlayerMessage(new CDVDMsgType<SPlayerState>(CDVDMsg::PLAYER_DISPLAYTIME, m_StateInput), current.player);
else
{
CSingleLock lock(m_StateSection);
m_State = m_StateInput;
}
}
}

Expand Down

0 comments on commit f803091

Please sign in to comment.