mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
unify encodng param creation
This commit is contained in:
parent
59ac045c6b
commit
38e05b11e2
13 changed files with 180 additions and 295 deletions
|
|
@ -76,7 +76,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
await AcquireResources(encodingJob, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
var commandLineArgs = await GetCommandLineArguments(encodingJob).ConfigureAwait(false);
|
||||
var commandLineArgs = GetCommandLineArguments(encodingJob);
|
||||
|
||||
var process = ProcessFactory.Create(new ProcessOptions
|
||||
{
|
||||
|
|
@ -265,7 +265,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
return ConfigurationManager.GetConfiguration<EncodingOptions>("encoding");
|
||||
}
|
||||
|
||||
protected abstract Task<string> GetCommandLineArguments(EncodingJob job);
|
||||
protected abstract string GetCommandLineArguments(EncodingJob job);
|
||||
|
||||
private string GetOutputFilePath(EncodingJob state)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue