Explorar o código

always hook after first result

Gil Pedersen %!s(int64=12) %!d(string=hai) anos
pai
achega
20c096ec41
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/hlsdump

+ 1 - 1
bin/hlsdump

@@ -77,7 +77,7 @@ r.on('readable', function() {
         reading = false;
         console.error('segment done at '+time.toFixed(0)+' seconds, avg bitrate (kbps):', (size / (duration * 1024/8)).toFixed(1));
         if (err) console.error('stream error', err.stack || err);
-        else hook(buffer);
+        hook(buffer);
         grabnext();
       });
     }