Permalink
Browse files

dvdplayer: do not pass display time to a/v players if not initied

  • Loading branch information...
1 parent 7bd1655 commit f8030913aa6fd4b58a61ddbb4f12448109e44f3a @FernetMenta FernetMenta committed Feb 26, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -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;
+ }
}
}

0 comments on commit f803091

Please sign in to comment.