Make things not break if video passthrough is enabled + update admin to display video settings a bit clearer. A start to #306

This commit is contained in:
Gabe Kangas
2020-11-19 22:07:28 -08:00
parent e860f9ab2f
commit 92dc98a0ea
5 changed files with 36 additions and 12 deletions

View File

@ -13,7 +13,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) {
var videoQualityVariants = make([]config.StreamQuality, 0)
for _, variant := range config.Config.GetVideoStreamQualities() {
videoQualityVariants = append(videoQualityVariants, config.StreamQuality{
IsAudioPassthrough: variant.IsAudioPassthrough,
IsAudioPassthrough: variant.GetIsAudioPassthrough(),
IsVideoPassthrough: variant.IsVideoPassthrough,
Framerate: variant.GetFramerate(),
EncoderPreset: variant.GetEncoderPreset(),