Skip to content

Commit

Permalink
[mmal] Exit preroll when we have some decoded frames
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Oct 30, 2014
1 parent b260cf1 commit 617cae5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/MMALCodec.cpp
Expand Up @@ -925,6 +925,10 @@ int CMMALVideo::Decode(uint8_t* pData, int iSize, double dts, double pts)
}
else
m_preroll = false;

if (m_preroll && m_output_ready.size() >= GetAllowedReferences())
m_preroll = false;

if (!m_output_ready.empty() && !m_preroll)
{
#if defined(MMAL_DEBUG_VERBOSE)
Expand Down

0 comments on commit 617cae5

Please sign in to comment.