mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Remove panic from thumbnail generation
This commit is contained in:
parent
b6085130c6
commit
b0768de6c0
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,8 @@ import (
|
|||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func startThumbnailGenerator(chunkPath string) {
|
||||
|
@ -82,5 +84,7 @@ func fireThumbnailGenerator(chunkPath string) {
|
|||
// fmt.Println(ffmpegCmd)
|
||||
|
||||
_, err = exec.Command("sh", "-c", ffmpegCmd).Output()
|
||||
verifyError(err)
|
||||
if err != nil {
|
||||
log.Errorln("Unable to generate thumbnail: ", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue