summarylogtreecommitdiffstats
path: root/media.util.ts.patch
blob: 8e968a3b0654ba5a466390770cc656fd2d3223d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- server/src/domain/media/media.util.ts	        2023-08-27 15:26:34.362052942 +0100
+++ server/src/domain/media/media.util.ts_patched	2023-08-27 15:27:30.806096774 +0100
@@ -248,10 +248,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);
       });