From 60e0f4d955b7707cb8845c324912c695a8693b16 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 5 Apr 2013 01:03:50 -0400 Subject: [PATCH] fixes #111 --- .../Providers/MediaInfo/BaseFFProbeProvider.cs | 4 ++++ MediaBrowser.Model/Entities/MediaStream.cs | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs b/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs index 06af1c8cc..bc8052f0e 100644 --- a/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs +++ b/MediaBrowser.Controller/Providers/MediaInfo/BaseFFProbeProvider.cs @@ -214,6 +214,10 @@ namespace MediaBrowser.Controller.Providers.MediaInfo { stream.Type = MediaStreamType.Subtitle; } + else if (streamInfo.codec_type.Equals("data", StringComparison.OrdinalIgnoreCase)) + { + stream.Type = MediaStreamType.Data; + } else { stream.Type = MediaStreamType.Video; diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 23744d644..84ae72393 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -158,6 +158,10 @@ namespace MediaBrowser.Model.Entities /// /// The subtitle /// - Subtitle + Subtitle, + /// + /// The data + /// + Data } }