浏览代码

listen to 'warning' instead of 'error'

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

+ 2 - 2
bin/hlsdump

@@ -125,8 +125,8 @@ function hook(stream) {
     smooth.on('unpipe', function() {
       this.unpipe();
     });
-    smooth.on('error', function(err) {
-      console.error('smooth error', err);
+    smooth.on('warning', function(err) {
+      console.error('smoothing error', err);
     });
     s = s.pipe(smooth);
   }