jicofo: use bool instead of string for codec flags (#1507)

This commit is contained in:
Aaron van Meerten 2023-03-20 06:41:59 -05:00 committed by GitHub
parent bdcae290c1
commit 2fdc643e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,17 +87,17 @@ jicofo {
video {
{{ if .Env.ENABLE_CODEC_VP8 }}
vp8 {
enabled = "{{ .Env.ENABLE_CODEC_VP8 }}"
enabled = {{ .Env.ENABLE_CODEC_VP8 | toBool }}
}
{{ end }}
{{ if .Env.ENABLE_CODEC_VP9 }}
vp9 {
enabled = "{{ .Env.ENABLE_CODEC_VP9 }}"
enabled = {{ .Env.ENABLE_CODEC_VP9 | toBool }}
}
{{ end }}
{{ if .Env.ENABLE_CODEC_H264 }}
h264 {
enabled = "{{ .Env.ENABLE_CODEC_H264 }}"
enabled = {{ .Env.ENABLE_CODEC_H264 | toBool }}
}
{{ end }}
}
@ -105,7 +105,7 @@ jicofo {
{{ if .Env.ENABLE_CODEC_OPUS_RED }}
opus {
red {
enabled = "{{ .Env.ENABLE_CODEC_OPUS_RED | toBool }}"
enabled = {{ .Env.ENABLE_CODEC_OPUS_RED | toBool }}
}
}
{{ end }}