Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed May 26, 2021
1 parent c6f36e4 commit 2bd3f53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,7 @@ export const getMediaInfoForTime = function(

time += segment.duration;

// TODO: We should consider not using TIME_FUDGE_FACTOR at all here, but at
// the time where this change was made there wasn't enough time to test without it.
// We should make some time to see if we can remove TIME_FUDGE_FACTOR here.
// TODO: consider not using TIME_FUDGE_FACTOR at all here
if ((time + TIME_FUDGE_FACTOR) > 0) {
return {
mediaIndex: segment.segmentIndex,
Expand Down Expand Up @@ -421,9 +419,7 @@ export const getMediaInfoForTime = function(

time -= partSegment.duration;

// TODO: We should consider not using TIME_FUDGE_FACTOR at all here, but at
// the time where this change was made there wasn't enough time to test without it.
// We should make some time to see if we can remove TIME_FUDGE_FACTOR here.
// TODO: consider not using TIME_FUDGE_FACTOR at all here
if ((time - TIME_FUDGE_FACTOR) < 0) {
return {
mediaIndex: partSegment.segmentIndex,
Expand Down

0 comments on commit 2bd3f53

Please sign in to comment.