mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix HLS track selection
This commit is contained in:
parent
eea57d0d76
commit
ecf7d1be9e
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Reference in a new issue