From 3b5eb0475cc0ca821f8e84a67cbf8a16378038fd Mon Sep 17 00:00:00 2001 From: vexorian Date: Mon, 5 Oct 2020 18:35:59 -0400 Subject: [PATCH] Fix that crash when channels don't have the watermark enabled. --- src/helperFuncs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helperFuncs.js b/src/helperFuncs.js index b00e81e..aaffd4c 100644 --- a/src/helperFuncs.js +++ b/src/helperFuncs.js @@ -272,6 +272,9 @@ function getWatermark( ffmpegSettings, channel, type) { e = (watermark.enabled === true); icon = watermark.url; } + if (! e) { + return null; + } if ( (typeof(icon) === 'undefined') || (icon === '') ) { icon = channel.icon; if ( (typeof(icon) === 'undefined') || (icon === '') ) {