add locking around subtitle extraction

This commit is contained in:
Luke Pulverenti
2013-10-18 16:02:56 -04:00
parent e6829fcdf0
commit 088c77674b
2 changed files with 65 additions and 6 deletions

View File

@@ -364,7 +364,7 @@ namespace MediaBrowser.Api.Playback
var path = Kernel.Instance.FFMpegManager.GetSubtitleCachePath(video, subtitleStream.Index, offset, ".ass");
if (performConversion && !File.Exists(path))
if (performConversion)
{
InputType type;
@@ -403,7 +403,7 @@ namespace MediaBrowser.Api.Playback
var path = Kernel.Instance.FFMpegManager.GetSubtitleCachePath(video, subtitleStream.Index, offset, ".ass");
if (performConversion && !File.Exists(path))
if (performConversion)
{
try
{