catch error on input.Close()

Signed-off-by: Daniel Widerin <daniel@widerin.net>
This commit is contained in:
Daniel Widerin 2020-10-25 09:23:38 +01:00
parent 7d44e0fe9f
commit b9d58c7e3c
No known key found for this signature in database
GPG Key ID: F75B6C110ED4EF65

View File

@ -171,5 +171,9 @@ func (enc *X264ImageCustomEncoder) Close() {
return
}
enc.closed = true
enc.input.Close()
err := enc.input.Close()
if err != nil {
log.Error("could not close input", err)
}
}