mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Changed stack type
This commit is contained in:
parent
34f3ed0a4d
commit
ba28e3041d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user