Make missing ffmpeg a fatal error. Closes #554
This commit is contained in:
parent
1dc25889ec
commit
3c7997b75e
@ -211,7 +211,7 @@ func (c *config) GetFFMpegPath() string {
|
|||||||
cmd := exec.Command("which", "ffmpeg")
|
cmd := exec.Command("which", "ffmpeg")
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debugln("Unable to determine path to ffmpeg. Please specify it in the config file.")
|
log.Fatalln("Unable to determine path to ffmpeg. Please specify it in the config file.")
|
||||||
}
|
}
|
||||||
|
|
||||||
path := strings.TrimSpace(string(out))
|
path := strings.TrimSpace(string(out))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user