diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/wifi-display/TimeSyncer.cpp | 6 | ||||
-rw-r--r-- | media/libstagefright/wifi-display/TimeSyncer.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/wifi-display/TimeSyncer.cpp b/media/libstagefright/wifi-display/TimeSyncer.cpp index 64e182e..cb429bc 100644 --- a/media/libstagefright/wifi-display/TimeSyncer.cpp +++ b/media/libstagefright/wifi-display/TimeSyncer.cpp @@ -102,6 +102,10 @@ void TimeSyncer::onMessageReceived(const sp<AMessage> &msg) { case kWhatSendPacket: { + if (mHistory.size() == 0) { + ALOGI("starting batch"); + } + TimeInfo ti; memset(&ti, 0, sizeof(ti)); @@ -229,6 +233,8 @@ void TimeSyncer::onMessageReceived(const sp<AMessage> &msg) { } else { notifyOffset(); + ALOGI("batch done"); + mHistory.clear(); postSendPacket(kBatchDelayUs); } diff --git a/media/libstagefright/wifi-display/TimeSyncer.h b/media/libstagefright/wifi-display/TimeSyncer.h index 0e3aed7..4e7571f 100644 --- a/media/libstagefright/wifi-display/TimeSyncer.h +++ b/media/libstagefright/wifi-display/TimeSyncer.h @@ -75,7 +75,7 @@ private: kNumPacketsPerBatch = 30, }; static const int64_t kTimeoutDelayUs = 500000ll; - static const int64_t kBatchDelayUs = 10000000ll; // every 10 secs + static const int64_t kBatchDelayUs = 60000000ll; // every minute sp<ANetworkSession> mNetSession; sp<AMessage> mNotify; |