Skip to content

Commit

Permalink
use explicit check instead of implicit checking the part for truthy a…
Browse files Browse the repository at this point in the history
…s to… (#5714)

* use null check instead of implicit checking the part for truthy as to not skip part 0

* Update src/loader/playlist-loader.ts

Co-authored-by: Rob Walch <robwalch@users.noreply.github.com>

---------

Co-authored-by: Rob Walch <robwalch@users.noreply.github.com>
  • Loading branch information
jhonalino and robwalch committed Aug 3, 2023
1 parent 4cc0c60 commit 6a67a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/playlist-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class PlaylistLoader implements NetworkComponentAPI {

// Override level/track timeout for LL-HLS requests
// (the default of 10000ms is counter productive to blocking playlist reload requests)
if (context.deliveryDirectives?.part) {
if (Number.isFinite(context.deliveryDirectives?.part)) {
let levelDetails: LevelDetails | undefined;
if (
context.type === PlaylistContextType.LEVEL &&
Expand Down

0 comments on commit 6a67a96

Please sign in to comment.