mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-27 00:55:26 +00:00
simplify the if
This commit is contained in:
1 parent
8dc58e8f04
commit
a18b3fbe70
1 file changed
+1
-9
@@ -5697,21 +5697,13 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
inputModifier = inputModifier.Trim();
|
||||
|
||||
// Apply -probesize if configured
|
||||
var probeSizeArgument = string.Empty;
|
||||
var ffmpegProbeSize = _config.GetFFmpegProbeSize();
|
||||
|
||||
if (!string.IsNullOrEmpty(ffmpegProbeSize))
|
||||
{
|
||||
probeSizeArgument = $"-probesize {probeSizeArgument}";
|
||||
inputModifier += $" -probesize {ffmpegProbeSize}";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(probeSizeArgument))
|
||||
{
|
||||
inputModifier += $" {probeSizeArgument}";
|
||||
}
|
||||
|
||||
inputModifier = inputModifier.Trim();
|
||||
|
||||
var userAgentParam = GetUserAgentParam(state);
|
||||
|
||||
if (!string.IsNullOrEmpty(userAgentParam))
|
||||
|
||||
Reference in new issue
Block a user