Skip to content

Commit

Permalink
mm
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Feb 12, 2017
1 parent b08cd0c commit 9016577
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/MMALCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,6 @@ int CMMALVideo::AddData(uint8_t* pData, int iSize, double dts, double pts)
MMAL_STATUS_T status;
assert(pData != nullptr && iSize > 0); // no longer valid

if (m_pool)
m_pool->Prime();
while (iSize > 0)
{
// 500ms timeout
Expand Down Expand Up @@ -748,9 +746,6 @@ 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 9016577

Please sign in to comment.