Correctly propagate fatal load error.

This commit is contained in:
Oliver Woodman 2014-12-12 14:25:48 +00:00
parent 4c29eb58f1
commit b80569237b

View file

@ -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;
}
}