Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Remove panic from thumbnail generation

Gabe Kangase53d02871337
diff --git a/thumbnailGenerator.go b/thumbnailGenerator.go
index f81bd6afee..4408ffccfe 100644
--- a/thumbnailGenerator.go
+++ b/thumbnailGenerator.go
@@ -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)
+ }
}