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

Commit 2c69b50c authored by Robert Shih's avatar Robert Shih Committed by android-build-merger
Browse files

rtsp: compare AU seq nums only when seekable am: d992b593

am: 2ccb0218

Change-Id: I37c9af704f33cf297504e62d6d882fedefaa798e
parents 4c169bbd 2ccb0218
Loading
Loading
Loading
Loading
+22 −20
Original line number Diff line number Diff line
@@ -1823,6 +1823,7 @@ private:
                // by ARTPSource. Only the low 16 bits of seq in RTP-Info of reply of
                // RTSP "PLAY" command should be used to detect the first RTP packet
                // after seeking.
                if (mSeekable) {
                    if (track->mAllowedStaleAccessUnits > 0) {
                        uint32_t seqNum16 = seqNum & 0xffff;
                        uint32_t firstSeqNumInSegment16 = track->mFirstSeqNumInSegment & 0xffff;
@@ -1845,6 +1846,7 @@ private:
                        track->mAllowedStaleAccessUnits = -1;
                        return UNKNOWN_ERROR;
                    }
                }

                // Now found the first rtp packet of the stream after seeking.
                track->mFirstSeqNumInSegment = seqNum;