diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-19 15:18:28 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-20 10:18:12 +0200 |
| commit | 7f4a229cd2fee89fdd8329c9c9f907e381d45c46 (patch) | |
| tree | ce60fe469b635c7c3369964d9783affebc483639 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 3142c9b9901cc653eb758ba7d47edbbe2190f83d (diff) | |
Add some simple tests
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 770539357..928ca1612 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -321,7 +321,7 @@ namespace MediaBrowser.Api.Playback var encodingOptions = ServerConfigurationManager.GetEncodingOptions(); // enable throttling when NOT using hardware acceleration - if (encodingOptions.HardwareAccelerationType == string.Empty) + if (string.IsNullOrEmpty(encodingOptions.HardwareAccelerationType)) { return state.InputProtocol == MediaProtocol.File && state.RunTimeTicks.HasValue && @@ -330,6 +330,7 @@ namespace MediaBrowser.Api.Playback state.VideoType == VideoType.VideoFile && !string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase); } + return false; } |
