mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-30 19:55:08 -04:00
fix number parser
This commit is contained in:
parent
e1f72b1f27
commit
6eec6c9957
@ -903,7 +903,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
if (OperatingSystem.IsWindows())
|
if (OperatingSystem.IsWindows())
|
||||||
{
|
{
|
||||||
// on Windows, the deviceIndex is an int
|
// on Windows, the deviceIndex is an int
|
||||||
if (int.TryParse(renderNodePath, NumberStyles.Any, CultureInfo.InvariantCulture, out int deviceIndex))
|
if (int.TryParse(renderNodePath, NumberStyles.Integer, CultureInfo.InvariantCulture, out int deviceIndex))
|
||||||
{
|
{
|
||||||
return GetD3d11vaDeviceArgs(deviceIndex, string.Empty, D3d11vaAlias) + arg + "@" + D3d11vaAlias;
|
return GetD3d11vaDeviceArgs(deviceIndex, string.Empty, D3d11vaAlias) + arg + "@" + D3d11vaAlias;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user