summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-17 11:04:26 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-17 15:59:24 +0000
commit987a2de5c39e66001d2754d6a06475c4098b703e (patch)
tree31ec02c224340ee164c20a1b93151972ab43da9f
parent5c25c3cac58e07c25fe438e61d5eccda7227ede4 (diff)
Only add the first found widevine CDM
Otherwise Chromium will pick the last added, meaning we will use the wrong one. Task-number: QTBUG-64071 Change-Id: Id5c939b6a5c70643ed047625c0cbb152dd8c7169 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit bd3687d2c5cc78e7571406471689b2d0fafbb1bf) Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rw-r--r--src/core/content_client_qt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/content_client_qt.cpp b/src/core/content_client_qt.cpp
index 3d87cfd45..87a2746cb 100644
--- a/src/core/content_client_qt.cpp
+++ b/src/core/content_client_qt.cpp
@@ -268,6 +268,7 @@ void AddPepperWidevine(std::vector<content::PepperPluginInfo>* plugins)
widevine_cdm.mime_types.push_back(widevine_cdm_mime_type);
widevine_cdm.permissions = kWidevineCdmPluginPermissions;
plugins->push_back(widevine_cdm);
+ break;
}
}
#endif // defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS) &&