blob: 0ee5d017f777abfa8d37133e13c3f867fdc280ea (
plain) (
tree)
|
|
--- phonon-4.11.1/phonon/factory.cpp.old 2019-09-26 10:29:38.000000000 +0000
+++ phonon-4.11.1/phonon/factory.cpp 2019-09-30 21:07:16.417472319 +0000
@@ -474,7 +474,11 @@
}
// Apply PHONON_BACKEND override if set.
- const QString backendEnv = qEnvironmentVariable("PHONON_BACKEND");
+ const QByteArray backendVal = qgetenv("PHONON_BACKEND");
+ if (backendVal.isNull()) {
+ return backendList;
+ }
+ const QString backendEnv = QString::fromLocal8Bit(backendVal);
if (backendEnv.isEmpty()) {
return backendList;
}
|