diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-01-16 09:35:48 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-01-16 09:35:48 +0300 |
commit | 9f2fa48ef37fc3c62eec6cb612168ff25d2606bd (patch) | |
tree | a87f4361e857d7598083e38c2a7e6c2a731ffc81 | |
parent | ac3bdfa101cee083ea53a5c00d7b1a0528f6b15f (diff) |
code style
-rw-r--r-- | lib/file-stream.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js index 9ca77ce..2084ba1 100644 --- a/lib/file-stream.js +++ b/lib/file-stream.js @@ -99,7 +99,8 @@ FileStream.prototype.pipe = function (dst) { var self = this var pipe = stream.Readable.prototype.pipe - if (dst && dst.nodeName === 'VIDEO' || dst.nodeName === 'AUDIO') { // <video> and <audio> tag + // <video> or <audio> tag + if (dst && (dst.nodeName === 'VIDEO' || dst.nodeName === 'AUDIO')) { var type = self._extname === '.webm' ? 'video/webm; codecs="vorbis,vp8"' : self._extname === '.mp4' |