diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-01-22 15:40:05 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-02-14 14:46:04 +0100 |
| commit | 1c14c86b20f695f7344f72d7c1c67ea4334f81f4 (patch) | |
| tree | 3dc36495db05ba6e90cb518e5410644e75635fd5 /Emby.Server.Implementations/LiveTv/LiveTvManager.cs | |
| parent | 68e7072698dafe7df1bd272df331c2ccc8134391 (diff) | |
Fix some warnings
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/LiveTvManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/LiveTvManager.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs index 6a9a3077c..5df18f6de 100644 --- a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs @@ -312,7 +312,7 @@ namespace Emby.Server.Implementations.LiveTv { if (isVideo) { - mediaSource.MediaStreams.AddRange(new List<MediaStream> + mediaSource.MediaStreams = new MediaStream[] { new MediaStream { @@ -329,11 +329,11 @@ namespace Emby.Server.Implementations.LiveTv // Set the index to -1 because we don't know the exact index of the audio stream within the container Index = -1 } - }); + }; } else { - mediaSource.MediaStreams.AddRange(new List<MediaStream> + mediaSource.MediaStreams = new MediaStream[] { new MediaStream { @@ -341,7 +341,7 @@ namespace Emby.Server.Implementations.LiveTv // Set the index to -1 because we don't know the exact index of the audio stream within the container Index = -1 } - }); + }; } } |
