Skip to content

Commit 589b08b

Browse files
authored
fix: add missed highWaterMark option for PassThrough (#99)
fixes #96
1 parent d50f9ab commit 589b08b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const supportedParsers = {
4646
};
4747

4848
let m3u8stream = ((playlistURL: string, options: m3u8stream.Options = {}): m3u8stream.Stream => {
49-
const stream = new PassThrough() as m3u8stream.Stream;
49+
const stream = new PassThrough({ highWaterMark: options.highWaterMark }) as m3u8stream.Stream;
5050
const chunkReadahead = options.chunkReadahead || 3;
5151
// 20 seconds.
5252
const liveBuffer = options.liveBuffer || 20000;

0 commit comments

Comments
 (0)