mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
add configurable encoding params
This commit is contained in:
parent
daeedb98ea
commit
9c7eef891b
6 changed files with 46 additions and 6 deletions
|
|
@ -928,7 +928,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
{
|
||||
StartProcess(processWrapper);
|
||||
|
||||
ranToCompletion = process.WaitForExit(10000);
|
||||
var timeoutMs = ConfigurationManager.Configuration.ImageExtractionTimeoutMs;
|
||||
if (timeoutMs <= 0)
|
||||
{
|
||||
timeoutMs = 10000;
|
||||
}
|
||||
ranToCompletion = process.WaitForExit(timeoutMs);
|
||||
|
||||
if (!ranToCompletion)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue