Skip to content
Snippets Groups Projects
Commit af019988 authored by ale's avatar ale
Browse files

Only set stereo_mode parameter of transcoder when not empty

parent 12b7e8ac
Branches
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment