Fix missing commas and merge defects

pull/2809/head
Vasily 5 years ago
parent 3c82379759
commit 628734931c

@ -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)

@ -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"
};

@ -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();

Loading…
Cancel
Save