summarylogtreecommitdiffstats
path: root/media.ts.patch
blob: e98d838593c2a35e2a845dd5a351bc3c354bbc7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- server/src/utils/media.ts	        2023-08-27 15:26:34.362052942 +0100
+++ server/src/utils/media.ts_patched	2023-08-27 15:27:30.806096774 +0100
@@ -274,10 +274,10 @@
       .sort((a, b) => {
         // order GPU devices first
         if (a.startsWith('card') && b.startsWith('renderD')) {
-          return -1;
+          return 1;
         }
         if (a.startsWith('renderD') && b.startsWith('card')) {
-          return 1;
+          return -1;
         }
         return -a.localeCompare(b);
       });