Browse Source

fix an issue about determining 'IsSecondaryAudio'

fix an issue that could not correctly determine 'IsSecondaryAudio' in some cases.
Nyanmisaka 5 years ago
parent
commit
48e9c004b4
1 changed files with 1 additions and 4 deletions
  1. 1 4
      MediaBrowser.Model/Dto/MediaSourceInfo.cs

+ 1 - 4
MediaBrowser.Model/Dto/MediaSourceInfo.cs

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