浏览代码

Merge pull request #872 from WillWill56/fix_sbnullref

Fix potential NullReferenceException
Joshua M. Boniface 6 年之前
父节点
当前提交
9d795adc3e
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CONTRIBUTORS.md
  2. 1 1
      MediaBrowser.Model/Dlna/StreamBuilder.cs

+ 1 - 0
CONTRIBUTORS.md

@@ -18,6 +18,7 @@
  - [dkanada](https://github.com/dkanada)
  - [LogicalPhallacy](https://github.com/LogicalPhallacy/)
  - [RazeLighter777](https://github.com/RazeLighter777)
+ - [WillWill56](https://github.com/WillWill56)
 
 # Emby Contributors
 

+ 1 - 1
MediaBrowser.Model/Dlna/StreamBuilder.cs

@@ -297,7 +297,7 @@ namespace MediaBrowser.Model.Dlna
             int? inputAudioChannels = audioStream?.Channels;
             int? inputAudioBitrate = audioStream?.BitDepth;
             int? inputAudioSampleRate = audioStream?.SampleRate;
-            int? inputAudioBitDepth = audioStream.BitDepth;
+            int? inputAudioBitDepth = audioStream?.BitDepth;
 
             if (directPlayMethods.Count() > 0)
             {