Skip to content

Commit

Permalink
squash: mmal: increase queue limit to 1 second to avoid stalls
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Aug 15, 2015
1 parent e00d059 commit bbb1308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/dvdplayer/DVDCodecs/Video/MMALCodec.cpp
Expand Up @@ -860,7 +860,7 @@ int CMMALVideo::Decode(uint8_t* pData, int iSize, double dts, double pts)
else if (dts != DVD_NOPTS_VALUE)
m_demuxerPts = dts;
double queued = m_decoderPts != DVD_NOPTS_VALUE && m_demuxerPts != DVD_NOPTS_VALUE ? m_demuxerPts - m_decoderPts : 0.0;
if (mmal_queue_length(m_dec_input_pool->queue) > 0 && !m_demux_queue_length && queued <= DVD_MSEC_TO_TIME(500))
if (mmal_queue_length(m_dec_input_pool->queue) > 0 && !m_demux_queue_length && queued <= DVD_MSEC_TO_TIME(1000))
{
if (g_advancedSettings.CanLogComponent(LOGVIDEO))
CLog::Log(LOGDEBUG, "%s::%s - got space for output: demux_queue(%d) space(%d) queued(%.2f)", CLASSNAME, __func__, m_demux_queue_length, mmal_queue_length(m_dec_input_pool->queue) * m_dec_input->buffer_size, queued*1e-6);
Expand Down

0 comments on commit bbb1308

Please sign in to comment.