summaryrefslogblamecommitdiff
path: root/user/phonon/qt59.patch
blob: 0ee5d017f777abfa8d37133e13c3f867fdc280ea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                   
--- 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;
     }