Skip to content

Commit

Permalink
MMALCodec: Add extra prime to avoid stalled video
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Jan 11, 2017
1 parent 93e4a7f commit cb07837
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/MMALCodec.cpp
Expand Up @@ -748,6 +748,9 @@ int CMMALVideo::GetPicture(DVDVideoPicture* pDvdVideoPicture)
bool drain = (m_codecControlFlags & DVD_CODEC_CTRL_DRAIN) ? true : false;
bool send_eos = drain && !m_got_eos && m_packet_num_eos != m_packet_num;

if (m_pool)
m_pool->Prime();

// we don't get an EOS response if no packets have been sent
if (m_packet_num == 0 && send_eos)
m_got_eos = true;
Expand Down

0 comments on commit cb07837

Please sign in to comment.