|
@@ -407,6 +407,11 @@ namespace MediaBrowser.Api
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
|
|
+ if (job.TranscodingThrottler != null)
|
|
|
|
+ {
|
|
|
|
+ job.TranscodingThrottler.Stop();
|
|
|
|
+ }
|
|
|
|
+
|
|
Logger.Info("Killing ffmpeg process for {0}", job.Path);
|
|
Logger.Info("Killing ffmpeg process for {0}", job.Path);
|
|
|
|
|
|
//process.Kill();
|
|
//process.Kill();
|
|
@@ -578,6 +583,8 @@ namespace MediaBrowser.Api
|
|
public long? TranscodingPositionTicks { get; set; }
|
|
public long? TranscodingPositionTicks { get; set; }
|
|
public long? DownloadPositionTicks { get; set; }
|
|
public long? DownloadPositionTicks { get; set; }
|
|
|
|
|
|
|
|
+ public TranscodingThrottler TranscodingThrottler { get; set; }
|
|
|
|
+
|
|
public void DisposeKillTimer()
|
|
public void DisposeKillTimer()
|
|
{
|
|
{
|
|
if (KillTimer != null)
|
|
if (KillTimer != null)
|