mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
crobibero styling, format, code suggestions
This commit is contained in:
parent
dd8ef08592
commit
3377032228
9 changed files with 655 additions and 667 deletions
|
|
@ -793,7 +793,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
CancellationToken cancellationToken)
|
||||
{
|
||||
var options = allowHwAccel ? _configurationManager.GetEncodingOptions() : new EncodingOptions();
|
||||
threads = threads ?? _threads;
|
||||
threads ??= _threads;
|
||||
|
||||
// A new EncodingOptions instance must be used as to not disable HW acceleration for all of Jellyfin.
|
||||
// Additionally, we must set a few fields without defaults to prevent null pointer exceptions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue