mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #8411] Allow direct play even if no audio stream is available #11710
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?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/8411
State: closed
Merged: Yes
If a video doesn't have an audio stream, it cannot direct play right now, since no supported audio stream can is available (
FirstOrDefaultalways returnsnullon empty collections).This commit ensures that any audio stream is available before matching the device profiles.
Changes
.Any()if clause to ensure at least one audio stream is available.listis removed.videoSupportedandaudioSupportedchecks optimized to return faster –nullstreams are always “supported”.Issues