jellyfin/tests
gnattu 162ea38a95
Check MaxAudioChannels for directAudioStream candidates (#12319)
* Check MaxAudioChannels for directAudioStream candidates

The current stream builder logic does not check the channel limit when determining if the audio stream can be directly used, and this can cause some undesired effects:

- A high channel count surround sound stream might be picked even if a stereo one exists when the user requires stereo audio.

- The user's preferred audio codec might not be respected during the downmix because the requested codec is now forced to be the same as the original source.

Signed-off-by: gnattu <gnattuoc@me.com>

* Fix unit test

Signed-off-by: gnattu <gnattuoc@me.com>

* Set correct transcode reason and target channels for unit test

Signed-off-by: gnattu <gnattuoc@me.com>

* Match old stream selection behavior

Signed-off-by: gnattu <gnattuoc@me.com>

* Fix reason matching

Signed-off-by: gnattu <gnattuoc@me.com>

---------

Signed-off-by: gnattu <gnattuoc@me.com>
2024-07-29 00:11:59 +02:00
..
Jellyfin.Api.Tests Backport pull request #11873 from jellyfin/release-10.9.z 2024-06-01 18:41:08 -04:00
Jellyfin.Common.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.Controller.Tests fix: update tests 2024-06-11 02:02:51 +02:00
Jellyfin.Extensions.Tests Lowercase CollectionTypeOptions to match legacy experience (#11272) 2024-03-31 21:58:06 -06:00
Jellyfin.LiveTv.Tests Move RecordingHelper to recordings folder 2024-02-23 09:57:55 -05:00
Jellyfin.MediaEncoding.Hls.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.MediaEncoding.Keyframes.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.MediaEncoding.Tests Backport pull request #12278 from jellyfin/release-10.9.z 2024-07-21 00:58:05 -04:00
Jellyfin.Model.Tests Check MaxAudioChannels for directAudioStream candidates (#12319) 2024-07-29 00:11:59 +02:00
Jellyfin.Naming.Tests Backport pull request #12026 from jellyfin/release-10.9.z 2024-06-23 11:40:41 -04:00
Jellyfin.Networking.Tests Fix tests 2023-12-18 22:02:31 +01:00
Jellyfin.Providers.Tests Move external url listing to provider for plugin use (#12279) 2024-07-17 09:48:31 -04:00
Jellyfin.Server.Implementations.Tests Update PremiereDateComparerTests 2024-07-09 21:11:23 -04:00
Jellyfin.Server.Integration.Tests Add regressions tests for update library endpoint 2024-06-02 18:18:13 +02:00
Jellyfin.Server.Tests Revert "Use System.Net.IPNetwork" 2023-11-14 21:16:33 +01:00
Jellyfin.XbmcMetadata.Tests Backport pull request #11935 from jellyfin/release-10.9.z 2024-06-05 17:02:56 -04:00
coverletArgs.runsettings SkipAutoProps is true by default but set it explicitly 2023-12-31 15:24:23 +01:00
Directory.Build.props Update to .NET 8 2023-11-14 21:12:16 +01:00
jellyfin-tests.ruleset Disable xUnit1028 2023-09-01 09:35:48 -06:00