Commit af019988 authored by ale's avatar ale

Only set stereo_mode parameter of transcoder when not empty

parent 12b7e8ac
Pipeline #6004 passed with stages
in 4 minutes and 53 seconds
......@@ -100,7 +100,9 @@ func liquidsoapFormatString(params *pb.EncodingParams) string {
outp = append(outp, "mono")
} else {
outp = append(outp, "stereo")
outp = append(outp, fmt.Sprintf("stereo_mode=\"%s\"", params.StereoMode))
if params.StereoMode != "" {
outp = append(outp, fmt.Sprintf("stereo_mode=\"%s\"", params.StereoMode))
}
}
outp = append(outp, fmt.Sprintf("samplerate=%d", params.SampleRate))
switch params.Format {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment