Allow multiple chunk loads to prepare a HLS stream.

Issue: #530
This commit is contained in:
Oliver Woodman 2015-06-10 18:30:00 +01:00
parent 87dfaff74b
commit 3661726401

View File

@ -362,11 +362,8 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
if (!currentLoadableExceptionFatal) { if (!currentLoadableExceptionFatal) {
clearCurrentLoadable(); clearCurrentLoadable();
} }
if (enabledTrackCount > 0) { if (enabledTrackCount > 0 || !prepared) {
maybeStartLoading(); maybeStartLoading();
} else {
clearState();
loadControl.trimAllocator();
} }
} }