mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
crobibero styling, format, code suggestions
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user