mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Correctly propagate fatal load error.
This commit is contained in:
parent
4c29eb58f1
commit
b80569237b
1 changed files with 2 additions and 1 deletions
|
|
@ -316,7 +316,8 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
|
|||
}
|
||||
|
||||
private void maybeThrowLoadableException() throws IOException {
|
||||
if (currentLoadableException != null && currentLoadableExceptionCount > minLoadableRetryCount) {
|
||||
if (currentLoadableException != null && (currentLoadableExceptionFatal
|
||||
|| currentLoadableExceptionCount > minLoadableRetryCount)) {
|
||||
throw currentLoadableException;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue