chrome_key_systems.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: deepak1556 <[email protected]>
  3. Date: Thu, 20 Sep 2018 17:50:13 -0700
  4. Subject: chrome_key_systems.patch
  5. Disable persiste licence support check for widevine cdm,
  6. as its not supported in the current version of chrome.
  7. diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc
  8. index b1c800648c70e5b81e167dc1697f50508bc20ce9..e5e0b8cb521bd074e193d039e31dfd5d949de05d 100644
  9. --- a/chrome/renderer/media/chrome_key_systems.cc
  10. +++ b/chrome/renderer/media/chrome_key_systems.cc
  11. @@ -15,7 +15,9 @@
  12. #include "base/strings/string_split.h"
  13. #include "base/strings/utf_string_conversions.h"
  14. #include "build/build_config.h"
  15. +#if 0
  16. #include "chrome/renderer/chrome_render_thread_observer.h"
  17. +#endif
  18. #include "components/cdm/renderer/external_clear_key_key_system_properties.h"
  19. #include "components/cdm/renderer/widevine_key_system_properties.h"
  20. #include "content/public/renderer/render_thread.h"
  21. @@ -194,12 +196,14 @@ static SupportedCodecs GetSupportedCodecs(
  22. // Returns persistent-license session support.
  23. static EmeSessionTypeSupport GetPersistentLicenseSupport(
  24. bool supported_by_the_cdm) {
  25. +#if 0
  26. // Do not support persistent-license if the process cannot persist data.
  27. // TODO(crbug.com/457487): Have a better plan on this. See bug for details.
  28. if (ChromeRenderThreadObserver::is_incognito_process()) {
  29. DVLOG(2) << __func__ << ": Not supported in incognito process.";
  30. return EmeSessionTypeSupport::NOT_SUPPORTED;
  31. }
  32. +#endif
  33. if (!supported_by_the_cdm) {
  34. DVLOG(2) << __func__ << ": Not supported by the CDM.";