Ver código fonte

fix an issue about determining 'IsSecondaryAudio'

fix an issue that could not correctly determine 'IsSecondaryAudio' in some cases.
Nyanmisaka 5 anos atrás
pai
commit
48e9c004b4
1 arquivos alterados com 1 adições e 4 exclusões
  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.Type == MediaStreamType.Audio && currentStream.IsDefault)
                 {
                 {
-                    if (currentStream.Index != stream.Index)
-                    {
-                        return true;
-                    }
+                    return currentStream.Index != stream.Index;
                 }
                 }
             }
             }