Explorar el Código

make options argument optional

Gil Pedersen hace 11 años
padre
commit
785871b9af
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      lib/hls-reader.js

+ 2 - 0
lib/hls-reader.js

@@ -42,6 +42,8 @@ function HlsReader(segmentReader, options) {
   if (!(this instanceof HlsReader))
     return new HlsReader(segmentReader, options);
 
+  options = options || {};
+
   Readable.call(this, { lowWaterMark: options.lowWaterMark, highWaterMark: options.highWaterMark });
 
   var self = this;