Changed stack type

This commit is contained in:
JPVenson 2024-10-29 14:28:02 +00:00
parent 34f3ed0a4d
commit ba28e3041d

View File

@ -152,7 +152,7 @@ namespace MediaBrowser.Controller.Entities
{
get
{
return GetMediaSourceCount(new Stack<Guid>());
return GetMediaSourceCount(new HashSet<Guid>());
}
}
@ -542,7 +542,7 @@ namespace MediaBrowser.Controller.Entities
return list;
}
private int GetMediaSourceCount(Stack<Guid> callstack)
private int GetMediaSourceCount(HashSet<Guid> callstack)
{
if (!string.IsNullOrEmpty(PrimaryVersionId))
{
@ -554,7 +554,7 @@ namespace MediaBrowser.Controller.Entities
return video.LinkedAlternateVersions.Length + video.LocalAlternateVersions.Length + 1;
}
callstack.Push(video.Id);
callstack.Add(video.Id);
return video.GetMediaSourceCount(callstack);
}
}