diff options
author | sr55 <[email protected]> | 2015-01-22 20:02:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-01-22 20:02:14 +0000 |
commit | a24c91033e92cec4f6f0639bdf1925f6ddcbde06 (patch) | |
tree | c6e10d3b5fb3ad1b279fff73c1896d6d4a7fc217 /win/CS | |
parent | 5a7fea212cd983d11538489b674e9c5c5017f997 (diff) |
WinGui: Always show 1 based indexes for audio and subtitles, and give libhb 0 based.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6796 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/ScanFactory.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs index 995aaa9ed..123ecd6d6 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs @@ -200,7 +200,7 @@ namespace HandBrake.Interop.Json.Factories }
else
{
- SubtitleList track = new SubtitleList { Burn = item.BurnedIn, Default = item.Default, Force = item.Forced, ID = item.TrackNumber, Track = (item.TrackNumber) };
+ SubtitleList track = new SubtitleList { Burn = item.BurnedIn, Default = item.Default, Force = item.Forced, ID = item.TrackNumber, Track = (item.TrackNumber - 1) };
subtitle.SubtitleList.Add(track);
}
}
@@ -296,7 +296,7 @@ namespace HandBrake.Interop.Json.Factories AudioList audioTrack = new AudioList
{
- Track = item.InputNumber,
+ Track = item.InputNumber - 1,
DRC = item.Drc,
Encoder = encoder.Id,
Gain = item.Gain,
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/ScanFactory.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/ScanFactory.cs index 2cee8252b..df2e4918c 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/ScanFactory.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/ScanFactory.cs @@ -133,7 +133,7 @@ namespace HandBrake.Interop.Json.Factories {
List<Subtitle> subtiles = new List<Subtitle>();
- int currentSubtitleTrack = 0;
+ int currentSubtitleTrack = 1;
foreach (SubtitleList subtitle in subtitles)
{
Subtitle newSubtitle = new Subtitle
@@ -166,7 +166,7 @@ namespace HandBrake.Interop.Json.Factories {
List<AudioTrack> tracks = new List<AudioTrack>();
- int currentAudioTrack = 0;
+ int currentAudioTrack = 1;
foreach (AudioList track in audioTracks)
{
AudioTrack newAudio = new AudioTrack
|