Index: components/cdm/renderer/widevine_key_systems.cc |
diff --git a/components/cdm/renderer/widevine_key_systems.cc b/components/cdm/renderer/widevine_key_systems.cc |
index 2a41322112eac5fac5e2dd64a7c46eff29705304..37cb19b3efc5234159059ac371a10389e903c79c 100644 |
--- a/components/cdm/renderer/widevine_key_systems.cc |
+++ b/components/cdm/renderer/widevine_key_systems.cc |
@@ -8,6 +8,7 @@ |
#include <vector> |
#include "base/logging.h" |
+#include "content/public/common/eme_constants.h" |
#include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
@@ -49,6 +50,15 @@ void AddWidevineWithCodecs(WidevineCdmType widevine_cdm_type, |
// initDataType. |
info.supported_codecs = supported_codecs; |
+ // |KeySystems| handles validating |init_data_type|/|container| mappings. |
ddorwin
2014/09/23 22:48:15
ditto.
ddorwin
2014/09/23 22:48:15
// Support for a container implies support for the
sandersd (OOO until July 31)
2014/09/24 22:22:33
Done.
sandersd (OOO until July 31)
2014/09/24 22:22:33
Done.
|
+ info.supported_init_data_types = content::EME_INIT_DATA_TYPE_NONE; |
ddorwin
2014/09/23 22:48:15
The constructor should handle this.
sandersd (OOO until July 31)
2014/09/24 22:22:33
Done.
|
+ if (supported_codecs & content::EME_CODEC_WEBM_ALL) |
+ info.supported_init_data_types |= content::EME_INIT_DATA_TYPE_WEBM; |
+#if defined(USE_PROPRIETARY_CODECS) |
+ if (supported_codecs & content::EME_CODEC_MP4_ALL) |
+ info.supported_init_data_types |= content::EME_INIT_DATA_TYPE_CENC; |
+#endif // defined(USE_PROPRIETARY_CODECS) |
+ |
#if defined(ENABLE_PEPPER_CDMS) |
info.pepper_type = kWidevineCdmPluginMimeType; |
#endif // defined(ENABLE_PEPPER_CDMS) |