summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-01-17 22:04:33 +0000
committersr55 <[email protected]>2015-01-17 22:04:33 +0000
commit7f7da739dc4485771416931aab652b6651737d69 (patch)
tree11f8d2f443d636679f0ef477f2da7d90b8dee146 /win/CS/HandBrake.ApplicationServices
parent75d7e2000d61c63e91f3e2d153be30e9db27b5e7 (diff)
WinGui: Don't set audio rate fields in the json message for passthru.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6764 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs b/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs
index 8023882e0..2c3f013ff 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs
@@ -11,6 +11,7 @@ namespace HandBrake.ApplicationServices.Utilities
{
using System;
using System.Collections.Generic;
+ using System.Diagnostics;
using System.Linq;
using System.Windows.Media.Animation;
@@ -75,6 +76,7 @@ namespace HandBrake.ApplicationServices.Utilities
job.ChosenAudioTracks = new List<int>();
foreach (AudioTrack track in work.AudioTracks)
{
+
AudioEncoding newTrack = new AudioEncoding
{
Bitrate = track.Bitrate,
@@ -85,7 +87,8 @@ namespace HandBrake.ApplicationServices.Utilities
Mixdown = Converters.GetCliMixDown(track.MixDown),
SampleRateRaw = GetSampleRateRaw(track.SampleRate),
EncodeRateType = AudioEncodeRateType.Bitrate,
- Name = track.TrackName
+ Name = track.TrackName,
+ IsPassthru = track.IsPassthru
};
profile.AudioEncodings.Add(newTrack);