aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-02-12 09:12:18 -0500
committerGitHub <noreply@github.com>2019-02-12 09:12:18 -0500
commit9d795adc3e6e5b8cf7974e62b544be11a3c42243 (patch)
tree79c09da096e36139e64075d12079169b6aae59ab
parent0ff38b6012af5a3d5d331067cbe9a9fba34d5eb8 (diff)
parentfe43e279c83da1269ff774ab9af7c493f788fcf3 (diff)
Merge pull request #872 from WillWill56/fix_sbnullref
Fix potential NullReferenceException
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--MediaBrowser.Model/Dlna/StreamBuilder.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 5e3455fba..28690f36f 100644
--- a/CONTRIBUTORS.md
+++ b/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
diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs
index 6c6e09ab1..586e322e4 100644
--- a/MediaBrowser.Model/Dlna/StreamBuilder.cs
+++ b/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)
{