Fix that crash when channels don't have the watermark enabled.

This commit is contained in:
vexorian 2020-10-05 18:35:59 -04:00
parent 31b1c4b9b1
commit 3b5eb0475c

View File

@ -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 === '') ) {