From a6732739c57f2323c20357479441b06ad1de3bf5 Mon Sep 17 00:00:00 2001 From: David Schulte Date: Tue, 11 Jun 2024 20:41:13 +0200 Subject: [PATCH] Respecting local burn-in subtitle setting when checking for PGS support. --- src/scripts/browserDeviceProfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 505f8276ac..e85642faea 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -1442,7 +1442,8 @@ export default function (options) { }); } - if (supportsCanvas2D()) { + if (supportsCanvas2D() && options.enablePgsRender !== false && !options.isRetry + && subtitleBurninSetting !== 'allcomplexformats' && subtitleBurninSetting !== 'onlyimageformats') { profile.SubtitleProfiles.push({ Format: 'pgssub', Method: 'External'