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--;
|
enabledTrackCount--;
|
||||||
trackEnabledStates[track] = false;
|
trackEnabledStates[track] = false;
|
||||||
pendingDiscontinuities[track] = false;
|
pendingDiscontinuities[track] = false;
|
||||||
|
if (enabledTrackCount == 0) {
|
||||||
if (loadControlRegistered) {
|
if (loadControlRegistered) {
|
||||||
loadControl.unregister(this);
|
loadControl.unregister(this);
|
||||||
loadControlRegistered = false;
|
loadControlRegistered = false;
|
||||||
}
|
}
|
||||||
if (enabledTrackCount == 0) {
|
|
||||||
if (loader.isLoading()) {
|
if (loader.isLoading()) {
|
||||||
loader.cancelLoading();
|
loader.cancelLoading();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user