Skip to content

Commit

Permalink
hack: Don't assert when unexpected buffer id but keep going
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Jan 22, 2018
1 parent d476457 commit 33bf6f0
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -867,7 +867,12 @@ void CMMALRenderer::AddVideoPicture(const VideoPicture& pic, int id, double curr
if (VERBOSE && g_advancedSettings.CanLogComponent(LOGVIDEO))
CLog::Log(LOGDEBUG, "%s::%s MMAL - %p (%p) %i", CLASSNAME, __func__, buffer, buffer->mmal_buffer, id);

assert(!m_buffers[id]);
//assert(!m_buffers[id]);
if (m_buffers[id])
{
CLog::Log(LOGNOTICE, "%s::%s MMAL - Unexpected m_buffers[%i]:%p buffer:%p (%p)", CLASSNAME, __func__, id, m_buffers[id], buffer, buffer->mmal_buffer);
m_buffers[id]->Release();
}
buffer->Acquire();
m_buffers[id] = buffer;
UpdateFramerateStats(pic.pts);
Expand Down

0 comments on commit 33bf6f0

Please sign in to comment.