diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-13 14:51:11 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-13 14:51:11 -0400 |
| commit | 322e468eeafa2de9cb25c24ec72375c42a0108bd (patch) | |
| tree | a54d4beb364b8e233c3cf8adaa2066ea2960aa77 | |
| parent | 1735300bcf13a34728984f295d1b62a872e8e579 (diff) | |
re-activate throttle
| -rw-r--r-- | MediaBrowser.Api/Playback/TranscodingThrottler.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/MediaBrowser.Api/Playback/TranscodingThrottler.cs b/MediaBrowser.Api/Playback/TranscodingThrottler.cs index f22ef4326..c486a44ea 100644 --- a/MediaBrowser.Api/Playback/TranscodingThrottler.cs +++ b/MediaBrowser.Api/Playback/TranscodingThrottler.cs @@ -25,10 +25,7 @@ namespace MediaBrowser.Api.Playback public 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.Playback try { - //_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.Playback try { - //_job.Process.StandardInput.WriteLine("u"); - _processManager.ResumeProcess(_job.Process); + _job.Process.StandardInput.WriteLine("u"); _isPaused = false; } catch (Exception ex) |
