From 5b9533c927fb9981461c8cd5697583be202ebbb8 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Wed, 19 Aug 2020 18:00:13 +0800 Subject: [PATCH] minor changes --- src/controllers/dashboard/encodingsettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/dashboard/encodingsettings.js b/src/controllers/dashboard/encodingsettings.js index d33e7fa7e8..05d5d9b31c 100644 --- a/src/controllers/dashboard/encodingsettings.js +++ b/src/controllers/dashboard/encodingsettings.js @@ -79,7 +79,7 @@ import libraryMenu from 'libraryMenu'; config.TonemappingDesat = form.querySelector('#txtTonemappingDesat').value; config.TonemappingThreshold = form.querySelector('#txtTonemappingThreshold').value; config.TonemappingPeak = form.querySelector('#txtTonemappingPeak').value; - config.TonemappingParam = form.querySelector('#txtTonemappingParam').value; + config.TonemappingParam = form.querySelector('#txtTonemappingParam').value || '0'; config.EncoderPreset = form.querySelector('#selectEncoderPreset').value; config.H264Crf = parseInt(form.querySelector('#txtH264Crf').value || '0'); config.DeinterlaceMethod = form.querySelector('#selectDeinterlaceMethod').value; @@ -162,7 +162,7 @@ import libraryMenu from 'libraryMenu'; page.querySelector('#txtVaapiDevice').removeAttribute('required'); } - if ('nvenc' == this.value) { + if (this.value == 'nvenc') { page.querySelector('.fldOpenclDevice').classList.remove('hide'); page.querySelector('#txtOpenclDevice').setAttribute('required', 'required'); page.querySelector('.tonemappingOptions').classList.remove('hide');