Add comments to createXxxxCommand functions to clarify about the filepaths arguments being absolute paths

This commit is contained in:
Deluan 2020-04-03 14:48:44 -04:00
parent 63bf49b3c4
commit 9b461735f4
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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