From ace69e90e6c40d2587f3ff02598d144956dc416e Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 6 Sep 2017 19:47:14 +0100 Subject: WinGui: Change some json model data types from int to long #851 --- .../Interop/HandBrakeEncoderHelpers.cs | 2 +- win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Range.cs | 6 +++--- win/CS/HandBrakeWPF/Services/Scan/Model/Audio.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs index 519d0480a..b0e72976a 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeEncoderHelpers.cs @@ -402,7 +402,7 @@ namespace HandBrake.ApplicationServices.Interop /// /// channel layout of the source track /// True if available. - public static bool MixdownIsSupported(HBMixdown mixdown, HBAudioEncoder encoder, int channelLayout) + public static bool MixdownIsSupported(HBMixdown mixdown, HBAudioEncoder encoder, long channelLayout) { return HBFunctions.hb_mixdown_is_supported(mixdown.Id, (uint)encoder.Id, (uint)channelLayout) > 0; } diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Range.cs b/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Range.cs index 1fb42f1db..f4b3724d2 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Range.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Range.cs @@ -23,16 +23,16 @@ namespace HandBrake.ApplicationServices.Interop.Json.Encode /// /// Gets or sets the chapter start. /// - public int? Start { get; set; } + public long? Start { get; set; } /// /// Gets or sets the frame to start. /// - public int? End { get; set; } + public long? End { get; set; } /// /// Gets or sets the seek points. /// - public int? SeekPoints { get; set; } + public long? SeekPoints { get; set; } } } \ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Services/Scan/Model/Audio.cs b/win/CS/HandBrakeWPF/Services/Scan/Model/Audio.cs index c0da86ecc..0d32db623 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/Model/Audio.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/Model/Audio.cs @@ -51,7 +51,7 @@ namespace HandBrakeWPF.Services.Scan.Model /// /// The channel Layout. /// - 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 /// /// Gets or sets the channel layout of the source track (mixdown) /// - public int ChannelLayout { get; set; } + public long ChannelLayout { get; set; } /// /// Override of the ToString method to make this object easier to use in the UI -- cgit v1.2.3