Fix HLS track selection
This commit is contained in:
parent
eea57d0d76
commit
ecf7d1be9e
@ -202,11 +202,11 @@ public class HlsSampleSource implements SampleSource, SampleSourceReader, Loader
|
||||
enabledTrackCount--;
|
||||
trackEnabledStates[track] = false;
|
||||
pendingDiscontinuities[track] = false;
|
||||
if (loadControlRegistered) {
|
||||
loadControl.unregister(this);
|
||||
loadControlRegistered = false;
|
||||
}
|
||||
if (enabledTrackCount == 0) {
|
||||
if (loadControlRegistered) {
|
||||
loadControl.unregister(this);
|
||||
loadControlRegistered = false;
|
||||
}
|
||||
if (loader.isLoading()) {
|
||||
loader.cancelLoading();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user