Changeset 496

Show
Ignore:
Timestamp:
07/24/07 18:45:24 (16 years ago)
Author:
jwoithe
Message:

Don't update the timestamp DLL if the timestamp isn't moving (as happens during startup).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libutil/TimestampedBuffer.cpp

    r495 r496  
    866866    } 
    867867#endif 
     868// FIXME: JMW: at some points during startup the timestamp doesn't change. 
     869// This still needs to be verified in more detail.   
     870if (ts>m_buffer_tail_timestamp-1 && ts<m_buffer_tail_timestamp+1) { 
     871  pthread_mutex_lock(&m_framecounter_lock); 
     872  m_framecounter += nbframes; 
     873  pthread_mutex_unlock(&m_framecounter_lock); 
     874  return; 
     875} 
    868876     
    869877    // update the DLL