[PR #8411] Allow direct play even if no audio stream is available #11710

Closed
opened 2026-02-07 06:43:09 +03:00 by OVERLORD · 0 comments
Owner

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 (FirstOrDefault always returns null on empty collections).
This commit ensures that any audio stream is available before matching the device profiles.

Changes

  • Wraps the audio stream check in a .Any() if clause to ensure at least one audio stream is available.
  • The unused variable list is removed.
  • videoSupported and audioSupported checks optimized to return faster – null streams are always “supported”.

Issues

**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 (`FirstOrDefault` always returns `null` on empty collections). This commit ensures that any audio stream is available before matching the device profiles. **Changes** * Wraps the audio stream check in a `.Any()` if clause to ensure at least one audio stream is available. * The unused variable `list` is removed. * `videoSupported` and `audioSupported` checks optimized to return faster – `null` streams are always “supported”. **Issues** * [jellyfin/jellyfin-android#28](https://github.com/jellyfin/jellyfin-android/issues/28#issuecomment-1221328279)
OVERLORD added the pull-request label 2026-02-07 06:43:09 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11710