Skip to content

Commit

Permalink
Fix missing commas and merge defects
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAMan committed May 26, 2020
1 parent 3c82379 commit 6287349
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,6 @@ public string GetInputArgument(EncodingJobInfo state, EncodingOptions encodingOp
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)
Expand Down
6 changes: 3 additions & 3 deletions MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class EncoderValidator
"mpeg2_mediacodec",
"mpeg4_mediacodec",
"vp8_mediacodec",
"vp9_mediacodec"
"vp9_mediacodec",
"h264_videotoolbox",
"hevc_videotoolbox",
"mpeg2_videotoolbox",
Expand Down Expand Up @@ -80,8 +80,8 @@ public class EncoderValidator
"hevc_vaapi",
"h264_omx",
"hevc_omx",
"h264_v4l2m2m"
"h264_videotoolbox"
"h264_v4l2m2m",
"h264_videotoolbox",
"hevc_videotoolbox"
};

Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public void SetAvailableDecoders(IEnumerable<string> list)
//_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();
Expand Down

0 comments on commit 6287349

Please sign in to comment.