From 32b2e832e86b19793900e1242c6df3844a19a73f Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 4 Apr 2024 14:54:28 +0200 Subject: [PATCH] reword comment to be more explicit --- .../decrypt/utils/check_key_statuses.ts | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main_thread/decrypt/utils/check_key_statuses.ts b/src/main_thread/decrypt/utils/check_key_statuses.ts index 00c1a816686..d4de877a3fa 100644 --- a/src/main_thread/decrypt/utils/check_key_statuses.ts +++ b/src/main_thread/decrypt/utils/check_key_statuses.ts @@ -205,7 +205,9 @@ export default function checkKeyStatuses( } case "usable-in-future": { - // those keys are not usable now + /** + * The key is not yet usable for decryption because the start time is in the future. + */ blacklistedKeyIds.push(keyId); break; } @@ -216,16 +218,22 @@ export default function checkKeyStatuses( } case "output-downscaled": { - // the video content has been downscaled, probably because the platform - // is insufficiently protected and has - // does not met the security policy to play the content. + /** + * The video content has been downscaled, probably because the device is + * insufficiently protected and does not met the security policy to play + * the content with the original quality (resolution). + * The key is usable to play the downscaled content. + * */ whitelistedKeyIds.push(keyId); break; } case "status-pending": { - // keys are not whitelisted nor blacklisted - // because we don't know yet if they are usable. + /** + * The status of the key is not yet known. + * It should not be blacklisted nor whitelisted until the actual status + * is determined. + * */ break; }