diff options
author | sr55 <[email protected]> | 2014-02-17 20:51:17 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-02-17 20:51:17 +0000 |
commit | 6bd1bab325550ccc8a9c9d3ee372a0aaa2e75c2e (patch) | |
tree | 0b297ad28dcbadc8ac7eb198eec6c407033c0330 /win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs | |
parent | 6ac0f1f45d334382b62605db96ea45a81d773aa6 (diff) |
WinGui: Update HandBrakeInterop Library for the latest encoder option changes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6038 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs index 72a75c112..a9c610bb4 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs @@ -476,26 +476,26 @@ namespace HandBrake.Interop if (!string.IsNullOrEmpty(profile.X264Profile))
{
- nativeJob.h264_profile = Marshal.StringToHGlobalAnsi(profile.X264Profile);
- this.encodeAllocatedMemory.Add(nativeJob.h264_profile);
+ nativeJob.encoder_profile = Marshal.StringToHGlobalAnsi(profile.X264Profile);
+ this.encodeAllocatedMemory.Add(nativeJob.encoder_profile);
}
if (!string.IsNullOrEmpty(profile.X264Preset))
{
- nativeJob.x264_preset = Marshal.StringToHGlobalAnsi(profile.X264Preset);
- this.encodeAllocatedMemory.Add(nativeJob.x264_preset);
+ nativeJob.encoder_preset = Marshal.StringToHGlobalAnsi(profile.X264Preset);
+ this.encodeAllocatedMemory.Add(nativeJob.encoder_preset);
}
if (profile.X264Tunes != null && profile.X264Tunes.Count > 0)
{
- nativeJob.x264_tune = Marshal.StringToHGlobalAnsi(string.Join(",", profile.X264Tunes));
- this.encodeAllocatedMemory.Add(nativeJob.x264_tune);
+ nativeJob.encoder_tune = Marshal.StringToHGlobalAnsi(string.Join(",", profile.X264Tunes));
+ this.encodeAllocatedMemory.Add(nativeJob.encoder_tune);
}
if (!string.IsNullOrEmpty(job.EncodingProfile.H264Level))
{
- nativeJob.h264_level = Marshal.StringToHGlobalAnsi(job.EncodingProfile.H264Level);
- this.encodeAllocatedMemory.Add(nativeJob.h264_level);
+ nativeJob.encoder_level = Marshal.StringToHGlobalAnsi(job.EncodingProfile.H264Level);
+ this.encodeAllocatedMemory.Add(nativeJob.encoder_level);
}
if (this.subtitleScan)
@@ -504,7 +504,7 @@ namespace HandBrake.Interop nativeJob.pass = -1;
nativeJob.indepth_scan = 1;
- nativeJob.advanced_opts = IntPtr.Zero;
+ nativeJob.encoder_options = IntPtr.Zero;
HBFunctions.hb_add(this.hbHandle, ref nativeJob);
}
@@ -528,14 +528,14 @@ namespace HandBrake.Interop }
}
- nativeJob.advanced_opts = Marshal.StringToHGlobalAnsi(firstPassAdvancedOptions);
- this.encodeAllocatedMemory.Add(nativeJob.advanced_opts);
+ nativeJob.encoder_options = Marshal.StringToHGlobalAnsi(firstPassAdvancedOptions);
+ this.encodeAllocatedMemory.Add(nativeJob.encoder_options);
HBFunctions.hb_add(this.hbHandle, ref nativeJob);
// Second pass. Apply normal options.
nativeJob.pass = 2;
- nativeJob.advanced_opts = originalX264Options;
+ nativeJob.encoder_options = originalX264Options;
HBFunctions.hb_add(this.hbHandle, ref nativeJob);
}
@@ -543,7 +543,7 @@ namespace HandBrake.Interop {
// One pass job.
nativeJob.pass = 0;
- nativeJob.advanced_opts = originalX264Options;
+ nativeJob.encoder_options = originalX264Options;
HBFunctions.hb_add(this.hbHandle, ref nativeJob);
}
|