Commit 5b2f0566 by Oliver Woodman

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.
parent 92e32081
...@@ -318,6 +318,9 @@ public class ChunkSampleSource implements SampleSource, Loader.Listener { ...@@ -318,6 +318,9 @@ public class ChunkSampleSource implements SampleSource, Loader.Listener {
} }
if (!mediaChunk.prepare()) { if (!mediaChunk.prepare()) {
if (currentLoadableException != null) {
throw currentLoadableException;
}
return NOTHING_READ; return NOTHING_READ;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment