]> granicus.if.org Git - handbrake/commitdiff
WinGui: Change some json model data types from int to long #851
authorsr55 <sr55.hb@outlook.com>
Wed, 6 Sep 2017 18:47:14 +0000 (19:47 +0100)
committersr55 <sr55.hb@outlook.com>
Wed, 6 Sep 2017 18:48:03 +0000 (19:48 +0100)
win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs
win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Range.cs
win/CS/HandBrakeWPF/Services/Scan/Model/Audio.cs

index 519d0480a9adb43c457619a504e2ba0248043e60..b0e72976abc4b255b135a6c1235a27aa893b102c 100644 (file)
@@ -402,7 +402,7 @@ namespace HandBrake.ApplicationServices.Interop
         /// </param>\r
         /// <param name="channelLayout">channel layout of the source track</param>\r
         /// <returns>True if available.</returns>\r
-        public static bool MixdownIsSupported(HBMixdown mixdown, HBAudioEncoder encoder, int channelLayout)\r
+        public static bool MixdownIsSupported(HBMixdown mixdown, HBAudioEncoder encoder, long channelLayout)\r
         {\r
             return HBFunctions.hb_mixdown_is_supported(mixdown.Id, (uint)encoder.Id, (uint)channelLayout) > 0;\r
         }\r
index 1fb42f1dbc138c783c9d61d1976ea017202187b6..f4b3724d294a9b76f2fe0276f0ba957c0f2e2619 100644 (file)
@@ -23,16 +23,16 @@ namespace HandBrake.ApplicationServices.Interop.Json.Encode
         /// <summary>\r
         /// Gets or sets the chapter start.\r
         /// </summary>\r
-        public int? Start { get; set; }\r
+        public long? Start { get; set; }\r
 \r
         /// <summary>\r
         /// Gets or sets the frame to start.\r
         /// </summary>\r
-        public int? End { get; set; }\r
+        public long? End { get; set; }\r
 \r
         /// <summary>\r
         /// Gets or sets the seek points.\r
         /// </summary>\r
-        public int? SeekPoints { get; set; }\r
+        public long? SeekPoints { get; set; }\r
     }\r
 }
\ No newline at end of file
index c0da86ecca405033836d9a137f389851263c8687..0d32db6233f1191bfe8091b9185f62943e255c27 100644 (file)
@@ -51,7 +51,7 @@ namespace HandBrakeWPF.Services.Scan.Model
         /// <param name="channelLayout">
         /// The channel Layout.
         /// </param>
-        public Audio(int trackNumber, string language, string languageCode, string description, int codec, int sampleRate, int bitrate, int channelLayout)
+        public Audio(int trackNumber, string language, string languageCode, string description, int codec, int sampleRate, int bitrate, long channelLayout)
         {
             this.ChannelLayout = channelLayout;
             this.TrackNumber = trackNumber;
@@ -101,7 +101,7 @@ namespace HandBrakeWPF.Services.Scan.Model
         /// <summary>
         /// Gets or sets the channel layout of the source track (mixdown)
         /// </summary>
-        public int ChannelLayout { get; set; }
+        public long ChannelLayout { get; set; }
 
         /// <summary>
         /// Override of the ToString method to make this object easier to use in the UI