|
|
@ -237,10 +237,13 @@ namespace MediaBrowser.Api
|
|
|
|
{
|
|
|
|
{
|
|
|
|
lock (_activeTranscodingJobs)
|
|
|
|
lock (_activeTranscodingJobs)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var job = _activeTranscodingJobs.First(j => j.Type == type && string.Equals(j.Path, path, StringComparison.OrdinalIgnoreCase));
|
|
|
|
var job = _activeTranscodingJobs.FirstOrDefault(j => j.Type == type && string.Equals(j.Path, path, StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (job != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
_activeTranscodingJobs.Remove(job);
|
|
|
|
_activeTranscodingJobs.Remove(job);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(state.Request.DeviceId))
|
|
|
|
if (!string.IsNullOrWhiteSpace(state.Request.DeviceId))
|
|
|
|
{
|
|
|
|
{
|
|
|
|