Skip to content

Commit

Permalink
stream-controller: remove useless destructuring
Browse files Browse the repository at this point in the history
unbloat the dist
  • Loading branch information
mangui committed Jan 25, 2017
1 parent 69a7a73 commit d258e41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/controller/stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class StreamController extends EventHandler {
return false;
}

frag = this._ensureFragmentAtLivePoint({levelDetails, bufferEnd, start, end, fragPrevious, fragments, fragLen});
frag = this._ensureFragmentAtLivePoint(levelDetails, bufferEnd, start, end, fragPrevious, fragments, fragLen);
// if it explicitely returns null don't load any fragment and exit function now
if (frag === null) {
return false;
Expand All @@ -299,15 +299,15 @@ class StreamController extends EventHandler {
}
}
if (!frag) {
frag = this._findFragment({start, fragPrevious, fragLen, fragments, bufferEnd, end, levelDetails});
frag = this._findFragment(start, fragPrevious, fragLen, fragments, bufferEnd, end, levelDetails);
}
if(frag) {
return this._loadFragmentOrKey({frag, level, levelDetails, pos, bufferEnd});
return this._loadFragmentOrKey(frag, level, levelDetails, pos, bufferEnd);
}
return true;
}

_ensureFragmentAtLivePoint({levelDetails, bufferEnd, start, end, fragPrevious, fragments, fragLen}) {
_ensureFragmentAtLivePoint(levelDetails, bufferEnd, start, end, fragPrevious, fragments, fragLen) {
const config = this.hls.config, media = this.media;

let frag;
Expand Down Expand Up @@ -362,7 +362,7 @@ class StreamController extends EventHandler {
return frag;
}

_findFragment({start, fragPrevious, fragLen, fragments, bufferEnd, end, levelDetails}) {
_findFragment(start, fragPrevious, fragLen, fragments, bufferEnd, end, levelDetails) {
const config = this.hls.config;

let frag,
Expand Down Expand Up @@ -428,7 +428,7 @@ class StreamController extends EventHandler {
return frag;
}

_loadFragmentOrKey({frag, level, levelDetails, pos, bufferEnd}) {
_loadFragmentOrKey(frag, level, levelDetails, pos, bufferEnd) {
const hls = this.hls,
config = hls.config;

Expand Down

0 comments on commit d258e41

Please sign in to comment.