mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4199] [MERGED] Fix stream performance when opening/closing new streams. #9937
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4199
Author: @ryanpetris
Created: 9/24/2020
Status: ✅ Merged
Merged: 10/13/2020
Merged by: @anthonylavado
Base:
master← Head:livetv-locking📝 Commits (1)
4db5700Don't take a lock if there's no intention to manipulate the list of open streams. Instead, use a ConcurrentDictionary so that, in those situations, thread-safe access to the dictionary is ensured.📊 Changes
1 file changed (+17 additions, -34 deletions)
View changed files
📝
Emby.Server.Implementations/Library/MediaSourceManager.cs(+17 -34)📄 Description
Due to locking, when starting a stream all other live streams are effectively paused. If a live stream takes a long time to start, other live streams will stop until the new live stream has started. This is undesired and existing streams should continue unimpeded.
Changes
Issues
I don't know if there's an issue for this or not, however I have observed the previous behavior myself on version 10.6.4.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.