mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
restore throttle
This commit is contained in:
@@ -51,11 +51,10 @@ namespace MediaBrowser.Api.Playback
|
||||
if (!_isPaused)
|
||||
{
|
||||
_logger.Debug("Sending pause command to ffmpeg");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
_job.Process.StandardInput.WriteLine("p");
|
||||
_job.Process.StandardInput.Write("c");
|
||||
_isPaused = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -63,17 +62,17 @@ namespace MediaBrowser.Api.Playback
|
||||
_logger.ErrorException("Error pausing transcoding", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UnpauseTranscoding()
|
||||
{
|
||||
if (_isPaused)
|
||||
{
|
||||
_logger.Debug("Sending unpause command to ffmpeg");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
_job.Process.StandardInput.WriteLine("u");
|
||||
_job.Process.StandardInput.WriteLine();
|
||||
_isPaused = false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -81,6 +80,7 @@ namespace MediaBrowser.Api.Playback
|
||||
_logger.ErrorException("Error unpausing transcoding", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsThrottleAllowed(TranscodingJob job)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user