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
This commit is contained in:
parent
5a60db3328
commit
cd076f7622
@ -110,6 +110,8 @@
|
||||
([#9800](https://github.com/google/ExoPlayer/issues/9800)).
|
||||
* Handle when RTSP track timing is not available
|
||||
([#9775](https://github.com/google/ExoPlayer/issues/9775)).
|
||||
* Ignores invalid RTP-Info header values
|
||||
([#9619](https://github.com/google/ExoPlayer/issues/9619)).
|
||||
* Cast extension
|
||||
* Fix bug that prevented `CastPlayer` from calling `onIsPlayingChanged`
|
||||
correctly ([#9792](https://github.com/google/ExoPlayer/issues/9792)).
|
||||
|
@ -619,11 +619,18 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
startTimingString == null
|
||||
? RtspSessionTiming.DEFAULT
|
||||
: RtspSessionTiming.parseTiming(startTimingString);
|
||||
@Nullable String rtpInfoString = response.headers.get(RtspHeaders.RTP_INFO);
|
||||
ImmutableList<RtspTrackTiming> trackTimingList =
|
||||
rtpInfoString == null
|
||||
? ImmutableList.of()
|
||||
: RtspTrackTiming.parseTrackTiming(rtpInfoString, uri);
|
||||
|
||||
ImmutableList<RtspTrackTiming> trackTimingList;
|
||||
try {
|
||||
@Nullable String rtpInfoString = response.headers.get(RtspHeaders.RTP_INFO);
|
||||
trackTimingList =
|
||||
rtpInfoString == null
|
||||
? ImmutableList.of()
|
||||
: RtspTrackTiming.parseTrackTiming(rtpInfoString, uri);
|
||||
} catch (ParserException e) {
|
||||
trackTimingList = ImmutableList.of();
|
||||
}
|
||||
|
||||
onPlayResponseReceived(new RtspPlayResponse(response.status, timing, trackTimingList));
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user