mirror of
https://github.com/androidx/media.git
synced 2025-05-14 02:59:52 +08:00
Remove dead code.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=111613354
This commit is contained in:
parent
664c80da15
commit
0aa4d3d209
@ -279,7 +279,6 @@ public class HlsChunkSource {
|
|||||||
|
|
||||||
selectedVariantIndex = nextVariantIndex;
|
selectedVariantIndex = nextVariantIndex;
|
||||||
int chunkMediaSequence = 0;
|
int chunkMediaSequence = 0;
|
||||||
boolean liveDiscontinuity = false;
|
|
||||||
if (live) {
|
if (live) {
|
||||||
if (previousTsChunk == null) {
|
if (previousTsChunk == null) {
|
||||||
chunkMediaSequence = getLiveStartChunkMediaSequence(nextVariantIndex);
|
chunkMediaSequence = getLiveStartChunkMediaSequence(nextVariantIndex);
|
||||||
@ -361,13 +360,12 @@ public class HlsChunkSource {
|
|||||||
Extractor extractor = new Mp3Extractor(startTimeUs);
|
Extractor extractor = new Mp3Extractor(startTimeUs);
|
||||||
extractorWrapper = new HlsExtractorWrapper(trigger, format, startTimeUs, extractor,
|
extractorWrapper = new HlsExtractorWrapper(trigger, format, startTimeUs, extractor,
|
||||||
switchingVariantSpliced, adaptiveMaxWidth, adaptiveMaxHeight);
|
switchingVariantSpliced, adaptiveMaxWidth, adaptiveMaxHeight);
|
||||||
} else if (previousTsChunk == null || liveDiscontinuity
|
} else if (previousTsChunk == null
|
||||||
|| previousTsChunk.discontinuitySequenceNumber != segment.discontinuitySequenceNumber
|
|| previousTsChunk.discontinuitySequenceNumber != segment.discontinuitySequenceNumber
|
||||||
|| !format.equals(previousTsChunk.format)) {
|
|| !format.equals(previousTsChunk.format)) {
|
||||||
// MPEG-2 TS segments, but we need a new extractor.
|
// MPEG-2 TS segments, but we need a new extractor.
|
||||||
if (previousTsChunk == null || liveDiscontinuity
|
if (previousTsChunk == null
|
||||||
|| previousTsChunk.discontinuitySequenceNumber != segment.discontinuitySequenceNumber
|
|| previousTsChunk.discontinuitySequenceNumber != segment.discontinuitySequenceNumber) {
|
||||||
|| ptsTimestampAdjuster == null) {
|
|
||||||
// TODO: Use this for AAC as well, along with the ID3 PRIV priv tag values with owner
|
// TODO: Use this for AAC as well, along with the ID3 PRIV priv tag values with owner
|
||||||
// identifier com.apple.streaming.transportStreamTimestamp.
|
// identifier com.apple.streaming.transportStreamTimestamp.
|
||||||
ptsTimestampAdjuster = new PtsTimestampAdjuster(startTimeUs);
|
ptsTimestampAdjuster = new PtsTimestampAdjuster(startTimeUs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user