Skip to content

Commit

Permalink
Update playlist-loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
frados authored Oct 7, 2016
1 parent 8916c86 commit c7457b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loader/playlist-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ class PlaylistLoader extends EventHandler {
let startParams = result[1];
let startAttrs = new AttrList(startParams);
let startTimeOffset = startAttrs.decimalFloatingPoint('TIME-OFFSET');
if (startTimeOffset) {
//TIME-OFFSET can be 0
if ( !isNaN(startTimeOffset) ) {
level.startTimeOffset = startTimeOffset;
}
break;
Expand Down

0 comments on commit c7457b9

Please sign in to comment.