44aeaa24 by jrivera

Don't attempt to update expired if we switched playlists (renditions)

There is no guarantee that different playlists have the same media-sequence number in a live stream. This would throw off expired calculations and make all our times useless. The fetcher should eventually fetch a segment with timing information and that will bring our expired calculation back in line.
1 parent e57b99f5
...@@ -360,6 +360,10 @@ ...@@ -360,6 +360,10 @@
360 return; 360 return;
361 } 361 }
362 362
363 if (update.uri !== outdated.uri) {
364 return;
365 }
366
363 // try using precise timing from first segment of the updated 367 // try using precise timing from first segment of the updated
364 // playlist 368 // playlist
365 if (update.segments.length) { 369 if (update.segments.length) {
......