You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exoplayer-amzn-2.10.6/library/sabr/src/main/java/com/google/android/exoplayer2/source/sabr/parser/SabrExtractor.java
+40-12Lines changed: 40 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -309,22 +309,32 @@ public void init(ExtractorOutput output) {
Copy file name to clipboardExpand all lines: exoplayer-amzn-2.10.6/library/sabr/src/main/java/com/google/android/exoplayer2/source/sabr/parser/SabrStream.java
Copy file name to clipboardExpand all lines: exoplayer-amzn-2.10.6/library/sabr/src/main/java/com/google/android/exoplayer2/source/sabr/parser/processor/SabrProcessor.java
+31-15Lines changed: 31 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@
43
43
importcom.liskovsoft.sharedutils.helpers.Helpers;
44
44
importcom.liskovsoft.sharedutils.mylogger.Log;
45
45
46
+
importjava.io.IOException;
46
47
importjava.util.ArrayList;
47
48
importjava.util.HashMap;
48
49
importjava.util.HashSet;
@@ -169,9 +170,16 @@ public ProcessMediaHeaderResult processMediaHeader(MediaHeader mediaHeader) {
169
170
thrownewSabrStreamError(String.format("FormatId not found in MediaHeader (media_header=%s)", mediaHeader));
170
171
}
171
172
173
+
// MOD: triggered even when no match found (probably multi thread issue?)
172
174
// Guard. This should not happen, except if we don't clear partial segments
173
175
if (partialSegments.containsKey(Utils.toLong(mediaHeader.getHeaderId()))) {
174
-
thrownewSabrStreamError(String.format("Header ID %s already exists", mediaHeader.getHeaderId()));
176
+
// TODO: investigate why different formats have the same header
177
+
// MOD: fix the exception
178
+
//throw new SabrStreamError(String.format("Header ID %s already exists", mediaHeader.getHeaderId()));
0 commit comments