Merge remote-tracking branch 'origin/release' into stable
Change-Id: I9ad818eecef74983e09660871f39ee66a6b666a1
This commit is contained in:
@@ -127,7 +127,12 @@ void QMediaPluginLoader::loadMetadata()
|
||||
qDebug() << "QMediaPluginLoader: Inserted index " << i << " into metadata: " << jsonobj;
|
||||
#endif
|
||||
|
||||
QJsonArray arr = jsonobj.value(QStringLiteral("Keys")).toArray();
|
||||
QJsonArray arr = jsonobj.value(QStringLiteral("Services")).toArray();
|
||||
// Preserve compatibility with older plugins (made before 5.1) in which
|
||||
// services were declared in the 'Keys' property
|
||||
if (arr.isEmpty())
|
||||
arr = jsonobj.value(QStringLiteral("Keys")).toArray();
|
||||
|
||||
foreach (QJsonValue value, arr) {
|
||||
QString key = value.toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user