exoplayer: upd sabr code

This commit is contained in:
Yuriy Liskov
2026-01-19 06:54:05 +02:00
parent 65cb746d82
commit 2f77269d70
3 changed files with 5 additions and 7 deletions

View File

@@ -1,3 +1,3 @@
files:
- source: /common/src/main/res/values/strings.xml
translation: /common/src/main/res/values-%android_code%/strings.xml
files:
- source: /common/src/main/res/values/strings.xml
translation: /common/src/main/res/values-%android_code%/strings.xml

View File

@@ -538,7 +538,7 @@ public class DefaultSabrChunkSource implements SabrChunkSource {
Representation representation = representationHolder.representation;
if (nexChunkIdx == -1) {
sabrStream.reset();
//sabrStream.reset();
}
nexChunkIdx++;

View File

@@ -65,7 +65,6 @@ public class SabrProcessor {
private final long durationMs;
private final Map<Long, Segment> partialSegments;
private Segment recentSegment;
private Segment recentSegmentTmp;
private final Map<String, SelectedFormat> selectedFormats;
private Status streamProtectionStatus;
private boolean isLive;
@@ -265,7 +264,6 @@ public class SabrProcessor {
);
recentSegment = segment;
recentSegmentTmp = segment;
}
Log.d(TAG, "Initialized Media Header %s for sequence %s. Segment: %s",
@@ -660,7 +658,7 @@ public class SabrProcessor {
}
public long getSegmentDurationMs() {
return recentSegment != null ? recentSegment.durationMs : recentSegmentTmp != null ? recentSegmentTmp.durationMs : 0;
return recentSegment != null ? recentSegment.durationMs : 0;
}
//private List<FormatId> createSelectedFormatIds() {