HLS: Set initial SampleQueue start times

This ensures BUFFER_FLAG_DECODE_ONLY is set on samples that are
before the playback start position, in the case that the queue
is created after the start position is set.

#minor-release

PiperOrigin-RevId: 366249188
This commit is contained in:
olly 2021-04-01 15:43:31 +01:00 committed by marcbaechinger
parent f8cc83a458
commit b93395e7a5
2 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,9 @@
`EXT-X-DISCONTINUITY` tags in different media playlists occur at `EXT-X-DISCONTINUITY` tags in different media playlists occur at
different positions in time different positions in time
([#8372](https://github.com/google/ExoPlayer/issues/8372)). ([#8372](https://github.com/google/ExoPlayer/issues/8372)).
* Fix issue that could cause playback of on-demand content to not start in
cases where the media playlists referenced by the master playlist have
different starting `EXT-X-PROGRAM-DATE-TIME` tags.
* Fix container type detection for segments with incorrect file extension * Fix container type detection for segments with incorrect file extension
or HTTP Content-Type or HTTP Content-Type
([#8733](https://github.com/google/ExoPlayer/issues/8733)). ([#8733](https://github.com/google/ExoPlayer/issues/8733)).

View File

@ -1070,6 +1070,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
drmSessionManager, drmSessionManager,
drmEventDispatcher, drmEventDispatcher,
overridingDrmInitData); overridingDrmInitData);
sampleQueue.setStartTimeUs(lastSeekPositionUs);
if (isAudioVideo) { if (isAudioVideo) {
sampleQueue.setDrmInitData(drmInitData); sampleQueue.setDrmInitData(drmInitData);
} }