浏览代码

Merge pull request #14827 from tjwalkr3/warnings-3

Fix CA1051 warning, Change public field to auto-property
Bond-009 1 天之前
父节点
当前提交
7dab62616f
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 2 0
      CONTRIBUTORS.md
  2. 4 3
      MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs

+ 2 - 0
CONTRIBUTORS.md

@@ -31,6 +31,7 @@
  - [DaveChild](https://github.com/DaveChild)
  - [DaveChild](https://github.com/DaveChild)
  - [DavidFair](https://github.com/DavidFair)
  - [DavidFair](https://github.com/DavidFair)
  - [Delgan](https://github.com/Delgan)
  - [Delgan](https://github.com/Delgan)
+ - [Derpipose](https://github.com/Derpipose)
  - [dcrdev](https://github.com/dcrdev)
  - [dcrdev](https://github.com/dcrdev)
  - [dhartung](https://github.com/dhartung)
  - [dhartung](https://github.com/dhartung)
  - [dinki](https://github.com/dinki)
  - [dinki](https://github.com/dinki)
@@ -140,6 +141,7 @@
  - [ThibaultNocchi](https://github.com/ThibaultNocchi)
  - [ThibaultNocchi](https://github.com/ThibaultNocchi)
  - [thornbill](https://github.com/thornbill)
  - [thornbill](https://github.com/thornbill)
  - [ThreeFive-O](https://github.com/ThreeFive-O)
  - [ThreeFive-O](https://github.com/ThreeFive-O)
+ - [tjwalkr3](https://github.com/tjwalkr3)
  - [TrisMcC](https://github.com/TrisMcC)
  - [TrisMcC](https://github.com/TrisMcC)
  - [trumblejoe](https://github.com/trumblejoe)
  - [trumblejoe](https://github.com/trumblejoe)
  - [TtheCreator](https://github.com/TtheCreator)
  - [TtheCreator](https://github.com/TtheCreator)

+ 4 - 3
MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs

@@ -23,9 +23,6 @@ namespace MediaBrowser.Controller.MediaEncoding
     {
     {
         private static readonly char[] _separators = ['|', ','];
         private static readonly char[] _separators = ['|', ','];
 
 
-        public int? OutputAudioBitrate;
-        public int? OutputAudioChannels;
-
         private TranscodeReason? _transcodeReasons = null;
         private TranscodeReason? _transcodeReasons = null;
 
 
         public EncodingJobInfo(TranscodingJobType jobType)
         public EncodingJobInfo(TranscodingJobType jobType)
@@ -37,6 +34,10 @@ namespace MediaBrowser.Controller.MediaEncoding
             SupportedSubtitleCodecs = Array.Empty<string>();
             SupportedSubtitleCodecs = Array.Empty<string>();
         }
         }
 
 
+        public int? OutputAudioBitrate { get; set; }
+
+        public int? OutputAudioChannels { get; set; }
+
         public TranscodeReason TranscodeReasons
         public TranscodeReason TranscodeReasons
         {
         {
             get
             get