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

Commit d992b593 authored by Robert Shih's avatar Robert Shih
Browse files

rtsp: compare AU seq nums only when seekable

Bug: 31205028
Change-Id: Ieae084a81126ce5509a0fb66b7f59b20d0a8df36
parent f9b77b8a
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;