mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-10 04:12:10 +01:00
Remove more warnings
This commit is contained in:
@@ -50,7 +50,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<(MediaAttachment attachment, Stream stream)> GetAttachment(BaseItem item, string mediaSourceId, int attachmentStreamIndex, CancellationToken cancellationToken)
|
||||
public async Task<(MediaAttachment Attachment, Stream Stream)> GetAttachment(BaseItem item, string mediaSourceId, int attachmentStreamIndex, CancellationToken cancellationToken)
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
|
||||
@@ -91,9 +91,13 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
/// <inheritdoc />
|
||||
public string EncoderPath => _ffmpegPath;
|
||||
|
||||
public Version EncoderVersion => _ffmpegVersion;
|
||||
|
||||
public bool IsVaapiDeviceAmd => _isVaapiDeviceAmd;
|
||||
|
||||
public bool IsVaapiDeviceInteliHD => _isVaapiDeviceInteliHD;
|
||||
|
||||
public bool IsVaapiDeviceInteli965 => _isVaapiDeviceInteli965;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -139,28 +139,28 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
||||
var subtitle = await GetSubtitleStream(mediaSource, subtitleStream, cancellationToken)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
var inputFormat = subtitle.format;
|
||||
var inputFormat = subtitle.Format;
|
||||
|
||||
// Return the original if we don't have any way of converting it
|
||||
if (!TryGetWriter(outputFormat, out var writer))
|
||||
{
|
||||
return subtitle.stream;
|
||||
return subtitle.Stream;
|
||||
}
|
||||
|
||||
// Return the original if the same format is being requested
|
||||
// Character encoding was already handled in GetSubtitleStream
|
||||
if (string.Equals(inputFormat, outputFormat, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return subtitle.stream;
|
||||
return subtitle.Stream;
|
||||
}
|
||||
|
||||
using (var stream = subtitle.stream)
|
||||
using (var stream = subtitle.Stream)
|
||||
{
|
||||
return ConvertSubtitles(stream, inputFormat, outputFormat, startTimeTicks, endTimeTicks, preserveOriginalTimestamps, cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<(Stream stream, string format)> GetSubtitleStream(
|
||||
private async Task<(Stream Stream, string Format)> GetSubtitleStream(
|
||||
MediaSourceInfo mediaSource,
|
||||
MediaStream subtitleStream,
|
||||
CancellationToken cancellationToken)
|
||||
|
||||
Reference in New Issue
Block a user