fix an issue about determining 'IsSecondaryAudio'

fix an issue that could not correctly determine 'IsSecondaryAudio' in some cases.
This commit is contained in:
Nyanmisaka 2020-01-24 00:55:14 +08:00 committed by GitHub
parent 2ce16d4bb5
commit 48e9c004b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,10 +209,7 @@ namespace MediaBrowser.Model.Dto
{ {
if (currentStream.Type == MediaStreamType.Audio && currentStream.IsDefault) if (currentStream.Type == MediaStreamType.Audio && currentStream.IsDefault)
{ {
if (currentStream.Index != stream.Index) return currentStream.Index != stream.Index;
{
return true;
}
} }
} }