aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs')
-rw-r--r--MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs b/MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs
index 99d1cdbc1..9e3a468c6 100644
--- a/MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs
+++ b/MediaBrowser.Providers/MediaInfo/BaseFFProbeProvider.cs
@@ -41,7 +41,7 @@ namespace MediaBrowser.Providers.MediaInfo
}
protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
-
+
/// <summary>
/// Fetches metadata and returns true or false indicating if any work that requires persistence was done
/// </summary>
@@ -134,7 +134,7 @@ namespace MediaBrowser.Providers.MediaInfo
/// <param name="mount">The mount.</param>
protected virtual void OnPreFetch(T item, IIsoMount mount)
{
-
+
}
/// <summary>
@@ -187,12 +187,16 @@ namespace MediaBrowser.Providers.MediaInfo
var stream = new MediaStream
{
Codec = streamInfo.codec_name,
- Language = GetDictionaryValue(streamInfo.tags, "language"),
Profile = streamInfo.profile,
Level = streamInfo.level,
Index = streamInfo.index
};
+ if (streamInfo.tags != null)
+ {
+ stream.Language = GetDictionaryValue(streamInfo.tags, "language");
+ }
+
if (streamInfo.codec_type.Equals("audio", StringComparison.OrdinalIgnoreCase))
{
stream.Type = MediaStreamType.Audio;