mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +01:00
Only reselect audio streams when user preference is respected (#13832)
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - HEAD (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - HEAD (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
This commit is contained in:
30
MediaBrowser.Model/MediaInfo/AudioIndexSource.cs
Normal file
30
MediaBrowser.Model/MediaInfo/AudioIndexSource.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.MediaInfo;
|
||||
|
||||
/// <summary>
|
||||
/// How is the audio index determined.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum AudioIndexSource
|
||||
{
|
||||
/// <summary>
|
||||
/// The default index when no preference is specified.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// The index is calculated whether the track is marked as default or not.
|
||||
/// </summary>
|
||||
Default = 1 << 0,
|
||||
|
||||
/// <summary>
|
||||
/// The index is calculated whether the track is in preferred language or not.
|
||||
/// </summary>
|
||||
Language = 1 << 1,
|
||||
|
||||
/// <summary>
|
||||
/// The index is specified by the user.
|
||||
/// </summary>
|
||||
User = 1 << 2
|
||||
}
|
||||
Reference in New Issue
Block a user