simplify the if

pull/10135/head
Claus Vium 9 months ago committed by GitHub
parent 8dc58e8f04
commit a18b3fbe70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5697,21 +5697,13 @@ namespace MediaBrowser.Controller.MediaEncoding
inputModifier = inputModifier.Trim(); inputModifier = inputModifier.Trim();
// Apply -probesize if configured // Apply -probesize if configured
var probeSizeArgument = string.Empty;
var ffmpegProbeSize = _config.GetFFmpegProbeSize(); var ffmpegProbeSize = _config.GetFFmpegProbeSize();
if (!string.IsNullOrEmpty(ffmpegProbeSize)) if (!string.IsNullOrEmpty(ffmpegProbeSize))
{ {
probeSizeArgument = $"-probesize {probeSizeArgument}"; inputModifier += $" -probesize {ffmpegProbeSize}";
} }
if (!string.IsNullOrEmpty(probeSizeArgument))
{
inputModifier += $" {probeSizeArgument}";
}
inputModifier = inputModifier.Trim();
var userAgentParam = GetUserAgentParam(state); var userAgentParam = GetUserAgentParam(state);
if (!string.IsNullOrEmpty(userAgentParam)) if (!string.IsNullOrEmpty(userAgentParam))

Loading…
Cancel
Save