Fix final issues with HLS 404 handling #537

This commit is contained in:
Oliver Woodman 2015-06-22 11:04:23 +01:00
parent 97aaee6d15
commit 2f268a9962

View File

@ -389,6 +389,9 @@ public class HlsSampleSource implements SampleSource, SampleSourceReader, Loader
public void onLoadError(Loadable loadable, IOException e) {
if (chunkSource.onChunkLoadError(currentLoadable, e)) {
// Error handled by source.
if (previousTsLoadable == null && !isPendingReset()) {
pendingResetPositionUs = currentTsLoadable.startTimeUs;
}
clearCurrentLoadable();
} else {
currentLoadableException = e;