Переглянути джерело

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);
   }