Skip to content

Commit e684c8f

Browse files
committed
rename nvidiaVideoProcessing to gpuVideoProcessing
1 parent 7c05033 commit e684c8f

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/routes/Player/Player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ const Player = ({ urlParams, queryParams }) => {
412412
maxAudioChannels: settings.surroundSound ? 32 : 2,
413413
hardwareDecoding: settings.hardwareDecoding,
414414
assSubtitlesStyling: settings.assSubtitlesStyling,
415-
nvidiaVideoProcessing: settings.nvidiaVideoProcessing,
415+
gpuVideoProcessing: settings.gpuVideoProcessing,
416416
videoMode: settings.videoMode,
417417
platform: platform.name,
418418
streamingServerURL: streamingServer.baseUrl ?

src/routes/Settings/Player/Player.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Player = forwardRef<HTMLDivElement, Props>(({ profile }: Props, ref) => {
2929
bingeWatchingToggle,
3030
playInBackgroundToggle,
3131
hardwareDecodingToggle,
32-
nvidiaVideoProcessingToggle,
32+
gpuVideoProcessingToggle,
3333
videoModeSelect,
3434
pauseOnMinimizeToggle,
3535
} = usePlayerOptions(profile);
@@ -138,7 +138,7 @@ const Player = forwardRef<HTMLDivElement, Props>(({ profile }: Props, ref) => {
138138
<Option label={'SUPPORTS_NVIDIA_VIDEO_PROCESSING'}>
139139
<Toggle
140140
tabIndex={-1}
141-
{...nvidiaVideoProcessingToggle}
141+
{...gpuVideoProcessingToggle}
142142
/>
143143
</Option>
144144
}

src/routes/Settings/Player/usePlayerOptions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,16 @@ const usePlayerOptions = (profile: Profile) => {
303303
}
304304
}), [profile.settings]);
305305

306-
const nvidiaVideoProcessingToggle = useMemo(() => ({
307-
checked: profile.settings.nvidiaVideoProcessing,
306+
const gpuVideoProcessingToggle = useMemo(() => ({
307+
checked: profile.settings.gpuVideoProcessing,
308308
onClick: () => {
309309
core.transport.dispatch({
310310
action: 'Ctx',
311311
args: {
312312
action: 'UpdateSettings',
313313
args: {
314314
...profile.settings,
315-
nvidiaVideoProcessing: !profile.settings.nvidiaVideoProcessing
315+
gpuVideoProcessing: !profile.settings.gpuVideoProcessing
316316
}
317317
}
318318
});
@@ -383,7 +383,7 @@ const usePlayerOptions = (profile: Profile) => {
383383
bingeWatchingToggle,
384384
playInBackgroundToggle,
385385
hardwareDecodingToggle,
386-
nvidiaVideoProcessingToggle,
386+
gpuVideoProcessingToggle,
387387
videoModeSelect,
388388
pauseOnMinimizeToggle,
389389
};

src/types/models/Ctx.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Settings = {
1919
autoFrameRateMatching: boolean,
2020
bingeWatching: boolean,
2121
hardwareDecoding: boolean,
22-
nvidiaVideoProcessing: boolean,
22+
gpuVideoProcessing: boolean,
2323
videoMode: string | null,
2424
escExitFullscreen: boolean,
2525
interfaceLanguage: string,

0 commit comments

Comments
 (0)