aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-16 14:24:42 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-16 14:24:42 -0400
commit06286eb164ac7fe8e0f54ed8966024979f27d94d (patch)
tree9f9ed59e38e4fc158ed1367656069b15e2a8da73
parentf988539e13e9f0a4bc206d2b6803520a35b7228e (diff)
restore throttle
-rw-r--r--MediaBrowser.Api/Playback/TranscodingThrottler.cs36
1 files changed, 18 insertions, 18 deletions
diff --git a/MediaBrowser.Api/Playback/TranscodingThrottler.cs b/MediaBrowser.Api/Playback/TranscodingThrottler.cs
index c486a44ea..943a4d065 100644
--- a/MediaBrowser.Api/Playback/TranscodingThrottler.cs
+++ b/MediaBrowser.Api/Playback/TranscodingThrottler.cs
@@ -51,16 +51,16 @@ namespace MediaBrowser.Api.Playback
if (!_isPaused)
{
_logger.Debug("Sending pause command to ffmpeg");
- }
- try
- {
- _job.Process.StandardInput.WriteLine("p");
- _isPaused = true;
- }
- catch (Exception ex)
- {
- _logger.ErrorException("Error pausing transcoding", ex);
+ try
+ {
+ _job.Process.StandardInput.Write("c");
+ _isPaused = true;
+ }
+ catch (Exception ex)
+ {
+ _logger.ErrorException("Error pausing transcoding", ex);
+ }
}
}
@@ -69,16 +69,16 @@ namespace MediaBrowser.Api.Playback
if (_isPaused)
{
_logger.Debug("Sending unpause command to ffmpeg");
- }
- try
- {
- _job.Process.StandardInput.WriteLine("u");
- _isPaused = false;
- }
- catch (Exception ex)
- {
- _logger.ErrorException("Error unpausing transcoding", ex);
+ try
+ {
+ _job.Process.StandardInput.WriteLine();
+ _isPaused = false;
+ }
+ catch (Exception ex)
+ {
+ _logger.ErrorException("Error unpausing transcoding", ex);
+ }
}
}