aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoftworkz <softworkz@hotmail.com>2016-07-27 02:45:46 +0200
committersoftworkz <softworkz@hotmail.com>2016-07-27 03:01:54 +0200
commit267ada923cde90f19f02deca5b6563b95f288bf6 (patch)
tree11684da95113701fa2096eb3a8001da47427a7fc
parente4e87e24a1589af33d1a9e4258b1527b4d4902e5 (diff)
ChannelMediaInfo: Create audio stream even when there is no video
-rw-r--r--MediaBrowser.Controller/Channels/ChannelMediaInfo.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs b/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs
index 9424568b4..1216ae352 100644
--- a/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs
+++ b/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs
@@ -83,8 +83,7 @@ namespace MediaBrowser.Controller.Channels
{
var list = new List<MediaStream>();
- if (!string.IsNullOrWhiteSpace(info.VideoCodec) &&
- !string.IsNullOrWhiteSpace(info.AudioCodec))
+ if (!string.IsNullOrWhiteSpace(info.VideoCodec))
{
list.Add(new MediaStream
{
@@ -99,7 +98,10 @@ namespace MediaBrowser.Controller.Channels
BitRate = info.VideoBitrate,
AverageFrameRate = info.Framerate
});
+ }
+ if (!string.IsNullOrWhiteSpace(info.AudioCodec))
+ {
list.Add(new MediaStream
{
Type = MediaStreamType.Audio,