aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/MediaInfoHelper.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2022-12-29 15:21:28 +0100
committerGitHub <noreply@github.com>2022-12-29 15:21:28 +0100
commit817996da4beabc4bb96bfa18cd581dcc6ab3179d (patch)
tree82f84d5d4ef57aa0b3a98061761ef3ae4f3cea4f /Jellyfin.Api/Helpers/MediaInfoHelper.cs
parent4ee1b78a800b1a525e30e5543cdeca9494a95a04 (diff)
parent0834dc58c13b42e599c78e3898229ecc09120754 (diff)
Merge pull request #7494 from Shadowghost/streambuilder-cleanup
Diffstat (limited to 'Jellyfin.Api/Helpers/MediaInfoHelper.cs')
-rw-r--r--Jellyfin.Api/Helpers/MediaInfoHelper.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Helpers/MediaInfoHelper.cs b/Jellyfin.Api/Helpers/MediaInfoHelper.cs
index e8ce1ca2a..e0245fe4d 100644
--- a/Jellyfin.Api/Helpers/MediaInfoHelper.cs
+++ b/Jellyfin.Api/Helpers/MediaInfoHelper.cs
@@ -181,7 +181,7 @@ namespace Jellyfin.Api.Helpers
{
var streamBuilder = new StreamBuilder(_mediaEncoder, _logger);
- var options = new VideoOptions
+ var options = new MediaOptions
{
MediaSources = new[] { mediaSource },
Context = EncodingContext.Streaming,
@@ -244,8 +244,8 @@ namespace Jellyfin.Api.Helpers
// Beginning of Playback Determination
var streamInfo = string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase)
- ? streamBuilder.BuildAudioItem(options)
- : streamBuilder.BuildVideoItem(options);
+ ? streamBuilder.GetOptimalAudioStream(options)
+ : streamBuilder.GetOptimalVideoStream(options);
if (streamInfo is not null)
{