Skip to content

Commit

Permalink
TODO about ffmpeg_prefix func
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Oct 12, 2024
1 parent 15678c2 commit 81b2a01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion markut.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func defaultContext() (EvalContext, bool) {
if err != nil {
if os.IsNotExist(err) {
return context, true;
}
}
fmt.Printf("ERROR: Could not open %s to read as a config: %s\n", path, err);
return context, false;
}
Expand Down Expand Up @@ -405,6 +405,7 @@ func (context *EvalContext) finishEval() bool {

func ffmpegPathToBin() (ffmpegPath string) {
ffmpegPath = "ffmpeg"
// TODO: replace FFMPEG_PREFIX envar in favor of a func `ffmpeg_prefix` that you have to call in $HOME/.markut
ffmpegPrefix, ok := os.LookupEnv("FFMPEG_PREFIX")
if ok {
ffmpegPath = path.Join(ffmpegPrefix, "bin", "ffmpeg")
Expand Down

0 comments on commit 81b2a01

Please sign in to comment.