Fixed bitrate null handling

pull/702/head
LukePulverenti Luke Pulverenti luke pulverenti 13 years ago
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…
Cancel
Save