Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 887070db authored by Andreas Huber's avatar Andreas Huber
Browse files

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
parent 21daec57
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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);
    }
+2 −0
Original line number Diff line number Diff line
@@ -161,8 +161,10 @@ private:

    bool mSendSRPending;

#if ENABLE_RETRANSMISSION
    List<sp<ABuffer> > mHistory;
    size_t mHistoryLength;
#endif

#if TRACK_BANDWIDTH
    int64_t mFirstPacketTimeUs;