mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
restore throttle
This commit is contained in:
parent
f988539e13
commit
06286eb164
@ -51,16 +51,16 @@ namespace MediaBrowser.Api.Playback
|
|||||||
if (!_isPaused)
|
if (!_isPaused)
|
||||||
{
|
{
|
||||||
_logger.Debug("Sending pause command to ffmpeg");
|
_logger.Debug("Sending pause command to ffmpeg");
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_job.Process.StandardInput.WriteLine("p");
|
_job.Process.StandardInput.Write("c");
|
||||||
_isPaused = true;
|
_isPaused = true;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.ErrorException("Error pausing transcoding", ex);
|
_logger.ErrorException("Error pausing transcoding", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,16 +69,16 @@ namespace MediaBrowser.Api.Playback
|
|||||||
if (_isPaused)
|
if (_isPaused)
|
||||||
{
|
{
|
||||||
_logger.Debug("Sending unpause command to ffmpeg");
|
_logger.Debug("Sending unpause command to ffmpeg");
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_job.Process.StandardInput.WriteLine("u");
|
_job.Process.StandardInput.WriteLine();
|
||||||
_isPaused = false;
|
_isPaused = false;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.ErrorException("Error unpausing transcoding", ex);
|
_logger.ErrorException("Error unpausing transcoding", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user