summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/wifi-display/rtp/RTPSender.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-04-26 08:42:50 -0700
committerAndreas Huber <andih@google.com>2013-04-26 08:42:50 -0700
commitc86ef45279185b474bd6af0a7ae407f8ab577f13 (patch)
tree110e05de886cf816f0b9265931c611f74d668b8b /media/libstagefright/wifi-display/rtp/RTPSender.cpp
parentc540ea00f4763758c9c40594d1e086aeefda9b70 (diff)
downloadframeworks_av-c86ef45279185b474bd6af0a7ae407f8ab577f13.zip
frameworks_av-c86ef45279185b474bd6af0a7ae407f8ab577f13.tar.gz
frameworks_av-c86ef45279185b474bd6af0a7ae407f8ab577f13.tar.bz2
Revert "Remove all traces of wifi display sink implementation and supporting code."
This reverts commit 3a9682a86ead84d6f60d3f3aa01b2b4d34af983d.
Diffstat (limited to 'media/libstagefright/wifi-display/rtp/RTPSender.cpp')
-rw-r--r--media/libstagefright/wifi-display/rtp/RTPSender.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/media/libstagefright/wifi-display/rtp/RTPSender.cpp b/media/libstagefright/wifi-display/rtp/RTPSender.cpp
index 095fd97..6bbe650 100644
--- a/media/libstagefright/wifi-display/rtp/RTPSender.cpp
+++ b/media/libstagefright/wifi-display/rtp/RTPSender.cpp
@@ -767,6 +767,17 @@ status_t RTPSender::parseTSFB(const uint8_t *data, size_t size) {
}
status_t RTPSender::parseAPP(const uint8_t *data, size_t size) {
+ if (!memcmp("late", &data[8], 4)) {
+ int64_t avgLatencyUs = (int64_t)U64_AT(&data[12]);
+ int64_t maxLatencyUs = (int64_t)U64_AT(&data[20]);
+
+ sp<AMessage> notify = mNotify->dup();
+ notify->setInt32("what", kWhatInformSender);
+ notify->setInt64("avgLatencyUs", avgLatencyUs);
+ notify->setInt64("maxLatencyUs", maxLatencyUs);
+ notify->post();
+ }
+
return OK;
}