mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-15 12:10:47 +01:00
add locking around subtitle extraction
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user