Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( packets->Length() == 0 ) {
- if ( m_LastRead.GetNumUnits() != 0 ) {
- vbl::CMediaTime diff = curr_time - m_LastRead;
- if ( diff > vbl::CMediaTime::MilliSeconds( 100 ) ) {
- m_Demuxer->Flush();
- m_LastRead = vbl::CMediaTime{ VBL_MEDIA_TIME_UNITS_PER_SECOND, 0 };
- }
- }
- }
- else {
- m_LastRead = curr_time;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement