mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
ChannelMediaInfo: Create audio stream even when there is no video
This commit is contained in:
parent
e4e87e24a1
commit
267ada923c
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue