diff options
author | sr55 <[email protected]> | 2015-01-02 21:18:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-01-02 21:18:44 +0000 |
commit | 5381c32a099538cc0e63d5393f26c6aa607b5eee (patch) | |
tree | 1500398a8ce1a229ead477ccc83e95b657e7f2c8 /win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs | |
parent | c919eaba0bdf52a41443e2845e445de9582c5de3 (diff) |
WinGui: Bug fixes to the libhb json encode factory and surrounding classes. Encoding is now working, but some settings are not fully honoured yet.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6681 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 | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs index a8bf3db75..0ed007e53 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs @@ -445,28 +445,46 @@ namespace HandBrake.Interop /// <param name="jobToStart">
/// The job to start.
/// </param>
+ /// <param name="title">
+ /// The title.
+ /// </param>
/// <param name="scanPreviewCount">
/// The scan Preview Count.
/// </param>
- public void StartEncode(EncodeJob jobToStart, int scanPreviewCount)
+ public void StartEncode(EncodeJob jobToStart, Title title, int scanPreviewCount)
{
- this.StartEncode(jobToStart, false, 0, 0, 0, scanPreviewCount);
+ this.StartEncode(jobToStart, title, false, 0, 0, 0, scanPreviewCount);
}
/// <summary>
/// Starts an encode with the given job.
/// </summary>
- /// <param name="job">The job to start.</param>
- /// <param name="preview">The scan Preview Count.</param>
- /// <param name="previewNumber">Preview Feature: Preview to encode</param>
- /// <param name="previewSeconds">Number of seconds to encode for the preview</param>
- /// <param name="overallSelectedLengthSeconds"></param>
- /// <param name="scanPreviewCount">Number of previews</param>
- public void StartEncode(EncodeJob job, bool preview, int previewNumber, int previewSeconds, double overallSelectedLengthSeconds, int scanPreviewCount)
+ /// <param name="job">
+ /// The job to start.
+ /// </param>
+ /// <param name="title">
+ /// The title.
+ /// </param>
+ /// <param name="preview">
+ /// The scan Preview Count.
+ /// </param>
+ /// <param name="previewNumber">
+ /// Preview Feature: Preview to encode
+ /// </param>
+ /// <param name="previewSeconds">
+ /// Number of seconds to encode for the preview
+ /// </param>
+ /// <param name="overallSelectedLengthSeconds">
+ /// The overall Selected Length Seconds.
+ /// </param>
+ /// <param name="scanPreviewCount">
+ /// Number of previews
+ /// </param>
+ public void StartEncode(EncodeJob job, Title title, bool preview, int previewNumber, int previewSeconds, double overallSelectedLengthSeconds, int scanPreviewCount)
{
this.previewCount = scanPreviewCount;
- JsonEncodeObject encodeObject = EncodeFactory.Create(job, lastScan);
+ JsonEncodeObject encodeObject = EncodeFactory.Create(job, title);
JsonSerializerSettings settings = new JsonSerializerSettings
{
|