Commit cd076f76 by claincly Committed by Ian Baker

Ignore invalid RTP-Info header value.

Issue: google/ExoPlayer#9619

(and a few other GH issues related to invalid RTP-Info header)

PiperOrigin-RevId: 423283017
parent 5a60db33
...@@ -110,6 +110,8 @@ ...@@ -110,6 +110,8 @@
([#9800](https://github.com/google/ExoPlayer/issues/9800)). ([#9800](https://github.com/google/ExoPlayer/issues/9800)).
* Handle when RTSP track timing is not available * Handle when RTSP track timing is not available
([#9775](https://github.com/google/ExoPlayer/issues/9775)). ([#9775](https://github.com/google/ExoPlayer/issues/9775)).
* Ignores invalid RTP-Info header values
([#9619](https://github.com/google/ExoPlayer/issues/9619)).
* Cast extension * Cast extension
* Fix bug that prevented `CastPlayer` from calling `onIsPlayingChanged` * Fix bug that prevented `CastPlayer` from calling `onIsPlayingChanged`
correctly ([#9792](https://github.com/google/ExoPlayer/issues/9792)). correctly ([#9792](https://github.com/google/ExoPlayer/issues/9792)).
......
...@@ -619,11 +619,18 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -619,11 +619,18 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
startTimingString == null startTimingString == null
? RtspSessionTiming.DEFAULT ? RtspSessionTiming.DEFAULT
: RtspSessionTiming.parseTiming(startTimingString); : RtspSessionTiming.parseTiming(startTimingString);
ImmutableList<RtspTrackTiming> trackTimingList;
try {
@Nullable String rtpInfoString = response.headers.get(RtspHeaders.RTP_INFO); @Nullable String rtpInfoString = response.headers.get(RtspHeaders.RTP_INFO);
ImmutableList<RtspTrackTiming> trackTimingList = trackTimingList =
rtpInfoString == null rtpInfoString == null
? ImmutableList.of() ? ImmutableList.of()
: RtspTrackTiming.parseTrackTiming(rtpInfoString, uri); : RtspTrackTiming.parseTrackTiming(rtpInfoString, uri);
} catch (ParserException e) {
trackTimingList = ImmutableList.of();
}
onPlayResponseReceived(new RtspPlayResponse(response.status, timing, trackTimingList)); onPlayResponseReceived(new RtspPlayResponse(response.status, timing, trackTimingList));
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment