jellyfin/tests/Jellyfin.Model.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
..
Cryptography Fix various typos 2022-08-15 06:48:34 -04:00
Dlna Check MaxAudioChannels for directAudioStream candidates (#12319) 2024-07-29 00:11:59 +02:00
Drawing Add support for converting from svg to other image types 2024-02-28 09:56:02 -07:00
Entities Add check for ProviderIds to prevent '=' from appearing in keys, also support '=' in the values. (#12274) 2024-07-15 08:44:22 -04:00
Extensions Add property based testing 2021-06-05 13:32:22 +02:00
Net Add missing MIME types for comicbook formats (#11010) 2024-02-15 23:15:14 +01:00
Test Data test: drop default flag from second audio track 2024-02-22 09:38:13 +03:00
Jellyfin.Model.Tests.csproj Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00