mirror of
https://github.com/androidx/media.git
synced 2025-05-17 04:29:55 +08:00
Fix final issues with HLS 404 handling #537
This commit is contained in:
parent
97aaee6d15
commit
2f268a9962
@ -389,6 +389,9 @@ public class HlsSampleSource implements SampleSource, SampleSourceReader, Loader
|
|||||||
public void onLoadError(Loadable loadable, IOException e) {
|
public void onLoadError(Loadable loadable, IOException e) {
|
||||||
if (chunkSource.onChunkLoadError(currentLoadable, e)) {
|
if (chunkSource.onChunkLoadError(currentLoadable, e)) {
|
||||||
// Error handled by source.
|
// Error handled by source.
|
||||||
|
if (previousTsLoadable == null && !isPendingReset()) {
|
||||||
|
pendingResetPositionUs = currentTsLoadable.startTimeUs;
|
||||||
|
}
|
||||||
clearCurrentLoadable();
|
clearCurrentLoadable();
|
||||||
} else {
|
} else {
|
||||||
currentLoadableException = e;
|
currentLoadableException = e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user