Advertisement
Guest User

Untitled

a guest
May 24th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. if ( packets->Length() == 0 ) {
  2. if ( m_LastRead.GetNumUnits() != 0 ) {
  3. vbl::CMediaTime diff = curr_time - m_LastRead;
  4. if ( diff > vbl::CMediaTime::MilliSeconds( 100 ) ) {
  5. m_Demuxer->Flush();
  6. m_LastRead = vbl::CMediaTime{ VBL_MEDIA_TIME_UNITS_PER_SECOND, 0 };
  7. }
  8. }
  9. }
  10. else {
  11. m_LastRead = curr_time;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement