Fix missing commas and merge defects

This commit is contained in:
Vasily 2020-05-26 18:41:38 +03:00
parent 3c82379759
commit 628734931c
3 changed files with 4 additions and 7 deletions

View File

@ -475,9 +475,6 @@ namespace MediaBrowser.Controller.MediaEncoding
if (state.IsVideoRequest
&& string.Equals(encodingOptions.HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
{
var videoDecoder = GetHardwareAcceleratedVideoDecoder(state, encodingOptions);
var outputVideoCodec = GetVideoEncoder(state, encodingOptions);
var hasTextSubs = state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode;
if (!hasTextSubs)

View File

@ -45,7 +45,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
"mpeg2_mediacodec",
"mpeg4_mediacodec",
"vp8_mediacodec",
"vp9_mediacodec"
"vp9_mediacodec",
"h264_videotoolbox",
"hevc_videotoolbox",
"mpeg2_videotoolbox",
@ -80,8 +80,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
"hevc_vaapi",
"h264_omx",
"hevc_omx",
"h264_v4l2m2m"
"h264_videotoolbox"
"h264_v4l2m2m",
"h264_videotoolbox",
"hevc_videotoolbox"
};

View File

@ -258,7 +258,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
//_logger.Info("Supported decoders: {0}", string.Join(",", list.ToArray()));
}
private List<string> _hwaccels = Array.Empty<string>();
private List<string> _hwaccels = new List<string>();
public void SetAvailableHwaccels(IEnumerable<string> list)
{
_hwaccels = list.ToList();