Skip to content

Commit

Permalink
Add comments to createXxxxCommand functions to clarify about the file…
Browse files Browse the repository at this point in the history
…paths arguments being absolute paths
  • Loading branch information
deluan committed Apr 3, 2020
1 parent 63bf49b commit 9b46173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions engine/transcoder/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func (ff *ffmpeg) Start(ctx context.Context, command, path string, maxBitRate in
return
}

// Path will always be an absolute path
func createTranscodeCommand(cmd, path string, maxBitRate int, format string) (string, []string) {
split := strings.Split(cmd, " ")
for i, s := range split {
Expand Down
1 change: 1 addition & 0 deletions scanner/metadata_ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ func (m *Metadata) parseDuration(tagName string) float32 {
return 0
}

// Inputs will always be absolute paths
func createProbeCommand(inputs []string) (string, []string) {
cmd := conf.Server.ProbeCommand

Expand Down

0 comments on commit 9b46173

Please sign in to comment.