diff --git a/src/sync-controller.js b/src/sync-controller.js index 4e05cfbaa..6b1d0c4d2 100644 --- a/src/sync-controller.js +++ b/src/sync-controller.js @@ -53,13 +53,11 @@ export const syncPointStrategies = [ break; } - if (!syncPoint || lastDistance === null || lastDistance >= distance) { - lastDistance = distance; - syncPoint = { - time: segmentStart, - segmentIndex: i - }; - } + lastDistance = distance; + syncPoint = { + time: segmentStart, + segmentIndex: i + }; } } return syncPoint;