diff options
author | sr55 <[email protected]> | 2015-01-18 18:02:25 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-01-18 18:02:25 +0000 |
commit | 3971869f634466f832c3ec33e0e9b1779058156f (patch) | |
tree | 01887b3240085072dc11a0d8bfec84a4f3819b4d /win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs | |
parent | d972a8646edc79e7f4e373c51dc2fb77233989f2 (diff) |
WinGui: Remove the EncodingProfile object as it doesn't make sense in the context of the app.
Small fix to updated preview window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6767 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs index abb67a074..1d7042ab3 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs @@ -456,7 +456,7 @@ namespace HandBrake.Interop {
long availableBytes = ((long)sizeMB) * 1024 * 1024;
- EncodingProfile profile = job.EncodingProfile;
+ EncodeJob profile = job;
double lengthSeconds = overallSelectedLengthSeconds > 0 ? overallSelectedLengthSeconds : GetJobLengthSeconds(job, title);
lengthSeconds += 1.5;
@@ -509,7 +509,7 @@ namespace HandBrake.Interop {
long totalBytes = 0;
- EncodingProfile profile = job.EncodingProfile;
+ EncodeJob profile = job;
double lengthSeconds = GetJobLengthSeconds(job, title);
lengthSeconds += 1.5;
@@ -579,7 +579,7 @@ namespace HandBrake.Interop {
var list = new List<Tuple<AudioEncoding, int>>();
- foreach (AudioEncoding encoding in job.EncodingProfile.AudioEncodings)
+ foreach (AudioEncoding encoding in job.AudioEncodings)
{
if (encoding.InputNumber == 0)
{
|