浏览代码

hook immediately when no buffer is set

Gil Pedersen 11 年之前
父节点
当前提交
fb0b150a1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/hlsdump

+ 1 - 1
bin/hlsdump

@@ -210,7 +210,7 @@ function hook(stream) {
   hooked = true;
 }
 
-if (!hlsdump.sync)
+if (!hlsdump.sync || !(hlsdump.bufferSize > 0))
   hook(buffer);
 
 // setup stat tracking