Skip to content

Commit

Permalink
[vtb] flush decoder when reset, should not need this as decoding is s…
Browse files Browse the repository at this point in the history
…ync, not async
  • Loading branch information
davilla committed Apr 30, 2011
1 parent 339fc4c commit 0243477
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -1375,6 +1375,9 @@ int CDVDVideoCodecVideoToolBox::Decode(BYTE* pData, int iSize, double dts, doubl

void CDVDVideoCodecVideoToolBox::Reset(void)
{
// flush decoder
VTDecompressionSessionWaitForAsynchronousFrames(m_vt_session);

while (m_queue_depth)
DisplayQueuePop();

Expand Down

0 comments on commit 0243477

Please sign in to comment.