Procházet zdrojové kódy

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

Aaron van Meerten před 2 roky
rodič
revize
2fdc643
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      jicofo/rootfs/defaults/jicofo.conf

+ 4 - 4
jicofo/rootfs/defaults/jicofo.conf

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