mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Fix potential cause of infinite-spinner-without-failure.
It looks like for the case of self-contained media segments, it's possible to get stuck without failure in the case that the load fails having loaded less than the length of the init data.
This commit is contained in:
parent
92e3208121
commit
5b2f0566a7
1 changed files with 3 additions and 0 deletions
|
|
@ -318,6 +318,9 @@ public class ChunkSampleSource implements SampleSource, Loader.Listener {
|
|||
}
|
||||
|
||||
if (!mediaChunk.prepare()) {
|
||||
if (currentLoadableException != null) {
|
||||
throw currentLoadableException;
|
||||
}
|
||||
return NOTHING_READ;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue