summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-10-02 10:47:48 -0700
committerAndreas Huber <andih@google.com>2012-10-02 10:47:48 -0700
commit887070dbe6b6258ba04f988fd90c3ac856d2e5bf (patch)
treebb47184a6db32ebf2f5fda22242067215c1a1f65 /media/libstagefright
parent21daec5798f7e13c5ab6b513d27b3f79d4779bca (diff)
downloadframeworks_av-887070dbe6b6258ba04f988fd90c3ac856d2e5bf.zip
frameworks_av-887070dbe6b6258ba04f988fd90c3ac856d2e5bf.tar.gz
frameworks_av-887070dbe6b6258ba04f988fd90c3ac856d2e5bf.tar.bz2
More power savings: No need to keep a history of outgoing packets
if we're not enabling retransmission anyway. Change-Id: I361120607974a2fab758c28b5033716213aef88e related-to-bug: 7248248
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/wifi-display/source/PlaybackSession.cpp9
-rw-r--r--media/libstagefright/wifi-display/source/PlaybackSession.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/media/libstagefright/wifi-display/source/PlaybackSession.cpp b/media/libstagefright/wifi-display/source/PlaybackSession.cpp
index fc5945b..4ae9895 100644
--- a/media/libstagefright/wifi-display/source/PlaybackSession.cpp
+++ b/media/libstagefright/wifi-display/source/PlaybackSession.cpp
@@ -264,8 +264,10 @@ WifiDisplaySource::PlaybackSession::PlaybackSession(
mNumRTPSent(0),
mNumRTPOctetsSent(0),
mNumSRsSent(0),
- mSendSRPending(false),
- mHistoryLength(0)
+ mSendSRPending(false)
+#if ENABLE_RETRANSMISSION
+ ,mHistoryLength(0)
+#endif
#if TRACK_BANDWIDTH
,mFirstPacketTimeUs(-1ll)
,mTotalBytesSent(0ll)
@@ -1126,7 +1128,9 @@ ssize_t WifiDisplaySource::PlaybackSession::appendTSData(
#endif
}
+#if ENABLE_RETRANSMISSION
mTSQueue->setInt32Data(mRTPSeqNo - 1);
+
mHistory.push_back(mTSQueue);
++mHistoryLength;
@@ -1138,6 +1142,7 @@ ssize_t WifiDisplaySource::PlaybackSession::appendTSData(
} else {
mTSQueue = new ABuffer(12 + kMaxNumTSPacketsPerRTPPacket * 188);
}
+#endif
mTSQueue->setRange(0, 12);
}
diff --git a/media/libstagefright/wifi-display/source/PlaybackSession.h b/media/libstagefright/wifi-display/source/PlaybackSession.h
index 7da8440..3bdb223 100644
--- a/media/libstagefright/wifi-display/source/PlaybackSession.h
+++ b/media/libstagefright/wifi-display/source/PlaybackSession.h
@@ -161,8 +161,10 @@ private:
bool mSendSRPending;
+#if ENABLE_RETRANSMISSION
List<sp<ABuffer> > mHistory;
size_t mHistoryLength;
+#endif
#if TRACK_BANDWIDTH
int64_t mFirstPacketTimeUs;