- Timestamp:
- 07/28/07 06:20:25 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/AmdtpSlaveStreamProcessor.cpp
r494 r506 125 125 } 126 126 127 uint64_t ts_head, fc; 127 uint64_t ts_head; 128 int fc; 128 129 if (!m_disabled && m_is_disabled) { // this means that we are trying to enable 129 130 // check if we are on or past the enable point … … 136 137 137 138 // initialize the buffer head & tail 138 m_SyncSource->m_data_buffer->getBufferHeadTimestamp(&ts_head, &fc); // thread safe 139 ffado_timestamp_t ts_head_tmp; 140 m_SyncSource->m_data_buffer->getBufferHeadTimestamp(&ts_head_tmp, &fc); // thread safe 141 ts_head=(uint64_t)ts_head_tmp; 139 142 140 143 // the number of cycles the sync source lags (> 0) … … 183 186 184 187 // the base timestamp is the one of the next sample in the buffer 185 m_data_buffer->getBufferHeadTimestamp(&ts_head, &fc); // thread safe 188 ffado_timestamp_t ts_head_tmp; 189 m_data_buffer->getBufferHeadTimestamp(&ts_head_tmp, &fc); // thread safe 190 ts_head=(uint64_t)ts_head_tmp; 186 191 187 192 // we send a packet some cycles in advance, to avoid the