aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Probing
diff options
context:
space:
mode:
authorMaxr1998 <max.rumpf1998@gmail.com>2021-04-04 14:58:20 +0200
committerMaxr1998 <max.rumpf1998@gmail.com>2021-04-04 15:13:54 +0200
commite0f513232b0b03135fa09fe39862c10982cb469e (patch)
treeb27bb675d6a770d08a318587f7c49b9bced1ffcb /MediaBrowser.MediaEncoding/Probing
parent8eaefce14e8d325cfbabb1ade278d5e561a20f42 (diff)
Reduce nesting
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing')
-rw-r--r--MediaBrowser.MediaEncoding/Probing/FFProbeHelpers.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/FFProbeHelpers.cs b/MediaBrowser.MediaEncoding/Probing/FFProbeHelpers.cs
index b2d4db894..e65c16ee2 100644
--- a/MediaBrowser.MediaEncoding/Probing/FFProbeHelpers.cs
+++ b/MediaBrowser.MediaEncoding/Probing/FFProbeHelpers.cs
@@ -85,12 +85,14 @@ namespace MediaBrowser.MediaEncoding.Probing
{
var val = GetDictionaryValue(tags, key);
- if (!string.IsNullOrEmpty(val))
+ if (string.IsNullOrEmpty(val))
{
- if (DateTime.TryParse(val, out var i))
- {
- return i.ToUniversalTime();
- }
+ return null;
+ }
+
+ if (DateTime.TryParse(val, out var i))
+ {
+ return i.ToUniversalTime();
}
return null;