diff options
| author | Joshua Boniface <joshua@boniface.me> | 2018-12-14 22:46:23 -0500 |
|---|---|---|
| committer | Joshua Boniface <joshua@boniface.me> | 2018-12-14 22:46:23 -0500 |
| commit | e5531c5c252522a6d96c9cb6607e96ad65c21eae (patch) | |
| tree | f54c095e3ba5fe47e66ebf390ec6a5a5b4722aa2 | |
| parent | a73d255f51f135adbc2c352fef79f776ce9fcb02 (diff) | |
Lower the ffmpeg stop timeout duration
As this was, ffmpeg would continue to transcode video for timerDuration
seconds after stopping playback (i.e. returning to the menu). However,
this 60s timeout was a little obnoxious. Tested a 100ms timeout but
this ended up causing playback to constantly terminate. 2s seems like
the sweet spot where playback works normally, but terminating quickly
on stop.
| -rw-r--r-- | MediaBrowser.Api/ApiEntryPoint.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index 5aa803b9b..ef74aecb2 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -421,12 +421,15 @@ namespace MediaBrowser.Api return; } + /* var timerDuration = 10000; if (job.Type != TranscodingJobType.Progressive) { timerDuration = 60000; } + */ + var timerDuration = 2000; job.PingTimeout = timerDuration; job.LastPingDate = DateTime.UtcNow; |
