cpp/src/av-sync.cpp
// should be called from thread-safe place
should be called from thread-safe place
should be called from thread - safe place
void AudioVideoSynchronizer::initialize(SyncStruct &syncData,
                                        int64_t firstPacketTsRemote,
                                        int64_t localTimestamp,
                                        Consumer *consumer)
{
    LogTraceC << "initalize " << syncData.name_ << std::endl;
    syncData.initialized_ = true;
    initialized_ = slaveSyncData_.initialized_ && masterSyncData_.initialized_;
    syncData.consumer_ = consumer;
    syncData.lastPacketTsLocal_ = localTimestamp;
    syncData.lastPacketTsRemote_ = firstPacketTsRemote;
}
void AudioVideoSynchronizer :: initialize ( SyncStruct & syncData , int64_t firstPacketTsRemote , int64_t localTimestamp , Consumer * consumer ) { LogTraceC << " " << syncData . name_ << std :: endl ; syncData . initialized_ = true ; initialized_ = slaveSyncData_ . initialized_ && masterSyncData_ . initialized_ ; syncData . consumer_ = consumer ; syncData . lastPacketTsLocal_ = localTimestamp ; syncData . lastPacketTsRemote_ = firstPacketTsRemote ; }
should be called from thread-safe place
should be called from thread - safe place