b8087029 by Gary Katsevman

Don't die if we seek past highest PTS value we have tags for

1 parent ebeb9647
......@@ -302,6 +302,7 @@
h264Frame.endNalUnit();
this.tags.push(h264Frame);
}
h264Frame = null;
......@@ -427,7 +428,9 @@
// We did not find any start codes. Try again next packet
state = 1;
if (h264Frame) {
h264Frame.writeBytes(data, start, length);
}
return;
case 3:
// The next byte is the first byte of a NAL Unit
......
......@@ -406,12 +406,15 @@ var
(function() {
var tag = segmentParser.getTags()[0];
for (; tag.pts < offset; tag = segmentParser.getTags()[0]) {
for (; tag && tag.pts < offset; tag = segmentParser.getTags()[0]) {
segmentParser.getNextTag();
}
// tell the SWF where we will be seeking to
if (tag) {
player.hls.el().vjs_setProperty('currentTime', tag.pts * 0.001);
}
lastSeekedTime = null;
})();
}
......