mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fixed bitrate null handling
This commit is contained in:
parent
24d2c441b3
commit
13e5b03694
@ -49,7 +49,12 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
int index = AudioFormats.ToList().IndexOf(audioFormat);
|
||||
|
||||
return AudioBitRates.ElementAtOrDefault(index);
|
||||
if (!AudioBitRates.Any())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return AudioBitRates.ElementAt(index);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user