2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 00:30:26 +00:00
|
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
|
|
Date: Thu, 20 Sep 2018 17:50:13 -0700
|
|
|
|
Subject: chrome_key_systems.patch
|
|
|
|
|
|
|
|
Disable persiste licence support check for widevine cdm,
|
|
|
|
as its not supported in the current version of chrome.
|
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc
|
2021-01-12 23:31:23 +00:00
|
|
|
index 21606970e534c73c791ee8e11d767939c334d37a..0c6671dd5175540fcb727cb4c44ed3bffbaaf555 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/chrome/renderer/media/chrome_key_systems.cc
|
|
|
|
+++ b/chrome/renderer/media/chrome_key_systems.cc
|
2020-12-14 18:57:36 +00:00
|
|
|
@@ -16,7 +16,9 @@
|
2018-09-14 05:02:16 +00:00
|
|
|
#include "base/strings/utf_string_conversions.h"
|
|
|
|
#include "build/build_config.h"
|
2020-12-14 18:57:36 +00:00
|
|
|
#include "build/chromeos_buildflags.h"
|
2018-09-14 05:02:16 +00:00
|
|
|
+#if 0
|
|
|
|
#include "chrome/renderer/chrome_render_thread_observer.h"
|
|
|
|
+#endif
|
|
|
|
#include "components/cdm/renderer/external_clear_key_key_system_properties.h"
|
|
|
|
#include "components/cdm/renderer/widevine_key_system_properties.h"
|
|
|
|
#include "content/public/renderer/render_thread.h"
|
2021-01-12 23:31:23 +00:00
|
|
|
@@ -201,12 +203,14 @@ static SupportedCodecs GetSupportedCodecs(
|
2018-09-14 05:02:16 +00:00
|
|
|
// Returns persistent-license session support.
|
2018-09-21 00:30:26 +00:00
|
|
|
static EmeSessionTypeSupport GetPersistentLicenseSupport(
|
|
|
|
bool supported_by_the_cdm) {
|
2018-09-14 05:02:16 +00:00
|
|
|
+#if 0
|
|
|
|
// Do not support persistent-license if the process cannot persist data.
|
|
|
|
// TODO(crbug.com/457487): Have a better plan on this. See bug for details.
|
|
|
|
if (ChromeRenderThreadObserver::is_incognito_process()) {
|
|
|
|
DVLOG(2) << __func__ << ": Not supported in incognito process.";
|
|
|
|
return EmeSessionTypeSupport::NOT_SUPPORTED;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
if (!supported_by_the_cdm) {
|
|
|
|
DVLOG(2) << __func__ << ": Not supported by the CDM.";
|