Merge pull request #24 from spruceb/patch-1

Fix crashes with a reference error to opts
This commit is contained in:
Austin Tinius 2020-05-19 01:55:59 -07:00 committed by GitHub
commit cc6df415bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ class FFMPEG extends events.EventEmitter {
else if (code === 255)
this.emit('close', code)
else
this.emit('error', { code: code, cmd: `${opts.ffmpegPath} ${tmpargs.join(' ')}` })
this.emit('error', { code: code, cmd: `${this.opts.ffmpegPath} ${tmpargs.join(' ')}` })
})
}
kill() {