Skip to content

Commit

Permalink
dvdplayer: do not signal started until output of first frame
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Jun 8, 2015
1 parent 9276720 commit 84d8d22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
Expand Up @@ -607,7 +607,7 @@ void CDVDPlayerAudio::Process()
}

// signal to our parent that we have initialized
if(m_started == false)
if(m_started == false && !(result & DECODE_FLAG_DROP))
{
m_started = true;
m_messageParent.Put(new CDVDMsgInt(CDVDMsg::PLAYER_STARTED, DVDPLAYER_AUDIO));
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
Expand Up @@ -727,7 +727,7 @@ void CDVDPlayerVideo::Process()

frametime = (double)DVD_TIME_BASE/m_fFrameRate;

if(m_started == false)
if(m_started == false && !(picture.iFlags & DVP_FLAG_DROPPED))
{
m_codecname = m_pVideoCodec->GetName();
m_started = true;
Expand Down

0 comments on commit 84d8d22

Please sign in to comment.