diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-04-01 23:56:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 23:56:00 +0300 |
| commit | cc40f84f3c138e439318e400eeb53cbb74eb8a84 (patch) | |
| tree | b07d4daa00a930e744008d0955e35a9102e85052 /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 07ea120ba961c20717dba625edb462d09e5ebec3 (diff) | |
| parent | f31efce52db9dbd726cce55ea099c0c5165da566 (diff) | |
Merge pull request #2660 from Bond-009/usings
Minor style fixes
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 295d72520..ce576a6c3 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -2013,6 +2013,7 @@ namespace MediaBrowser.Controller.MediaEncoding } // If we're hardware VAAPI decoding and software encoding, download frames from the decoder first + else if (string.Equals(options.HardwareAccelerationType, "vaapi", StringComparison.OrdinalIgnoreCase) && !options.EnableHardwareEncoding) { var codec = videoStream.Codec.ToLowerInvariant(); @@ -2705,7 +2706,7 @@ namespace MediaBrowser.Controller.MediaEncoding { if (Environment.OSVersion.Platform == PlatformID.Win32NT) { - if(Environment.OSVersion.Version.Major > 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor > 1)) + if (Environment.OSVersion.Version.Major > 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor > 1)) return "-hwaccel d3d11va"; else return "-hwaccel dxva2"; |
