The Free Software Media System - Server Backend & API
re-activate throttle
Luke Pulverenti322e468eeafa
diff --git a/MediaBrowser.Api/Playback/TranscodingThrottler.cs b/MediaBrowser.Api/Playback/TranscodingThrottler.csindex f22ef4326c..c486a44eac 100644--- a/MediaBrowser.Api/Playback/TranscodingThrottler.cs+++ b/MediaBrowser.Api/Playback/TranscodingThrottler.cs@@ -25,10 +25,7 @@ namespace MediaBrowser.Api.Playbackpublic void Start(){- if (_processManager.SupportsSuspension)- {- //_timer = new Timer(TimerCallback, null, 5000, 5000);- }+ _timer = new Timer(TimerCallback, null, 5000, 5000);}private void TimerCallback(object state)@@ -58,8 +55,7 @@ namespace MediaBrowser.Api.Playbacktry{- //_job.Process.StandardInput.WriteLine("p");- _processManager.SuspendProcess(_job.Process);+ _job.Process.StandardInput.WriteLine("p");_isPaused = true;}catch (Exception ex)@@ -77,8 +73,7 @@ namespace MediaBrowser.Api.Playbacktry{- //_job.Process.StandardInput.WriteLine("u");- _processManager.ResumeProcess(_job.Process);+ _job.Process.StandardInput.WriteLine("u");_isPaused = false;}catch (Exception ex)