|
|
@@ -118,7 +118,8 @@ function HlsStreamReader(src, options) {
|
|
|
this.index = null;
|
|
|
this.readState = {
|
|
|
nextSeq:-1,
|
|
|
- currentSegment:null,
|
|
|
+ active:false,
|
|
|
+ fetching:null
|
|
|
}
|
|
|
|
|
|
function getUpdateInterval(updated) {
|
|
|
@@ -140,7 +141,7 @@ function HlsStreamReader(src, options) {
|
|
|
self.emit('index', self.index);
|
|
|
|
|
|
if (self.index.variant)
|
|
|
- return self.end();
|
|
|
+ return self.push(null);
|
|
|
}
|
|
|
checknext(self);
|
|
|
|
|
|
@@ -182,7 +183,7 @@ function HlsStreamReader(src, options) {
|
|
|
}
|
|
|
updateindex();
|
|
|
|
|
|
- Readable.call(this, extend(options, {objectMode:true}));
|
|
|
+ Readable.call(this, extend(options, {objectMode:true, highWaterMark:options.highWaterMark || 0}));
|
|
|
}
|
|
|
util.inherits(HlsStreamReader, Readable);
|
|
|
|