summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-03-06 22:36:10 +0000
committersr55 <[email protected]>2015-03-06 22:36:10 +0000
commit27a40c0299e0545d1b92ab12a5508c5f4ffb9b8b (patch)
treec8c8591aac41588c5c4e3cf0d3fdcd1de992f5dd /win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
parent01eabb2d314372bb301c3468d53840994105c652 (diff)
WinGui: Stripping out a lot of legacy abstraction code for the scan service.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6971 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
index 4fc5e3a52..0f2113ca1 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
@@ -132,7 +132,7 @@ namespace HandBrake.ApplicationServices.Services.Encode
this.instance.ScanCompleted += delegate
{
// Process into internal structures.
- this.scannedSource = new Source { Titles = LibScan.ConvertTitles(this.instance.Titles, this.instance.FeatureTitle) }; // TODO work around the bad Internal API.
+ this.scannedSource = new Source { Titles = LibScan.ConvertTitles(this.instance.Titles) }; // TODO work around the bad Internal API.
this.ScanCompleted(job, this.instance);
};
@@ -218,19 +218,11 @@ namespace HandBrake.ApplicationServices.Services.Encode
throw new Exception("Unable to get title for encoding. Encode Failed.");
}
- Interop.Model.Scan.Title scannedTitle = new Interop.Model.Scan.Title
- {
- Resolution = new Size(title.Resolution.Width, title.Resolution.Height),
- ParVal = new Size(title.ParVal.Width, title.ParVal.Height),
- FramerateDenominator = title.FramerateDenominator,
- FramerateNumerator = title.FramerateNumerator,
- };
-
ServiceLogMessage("Starting Encode ...");
// Get an EncodeJob object for the Interop Library
SourceVideoInfo videoInfo = new SourceVideoInfo(title.FramerateNumerator, title.FramerateDenominator, title.Resolution, title.ParVal);
- instance.StartEncode(EncodeFactory.Create(job.Task, videoInfo, job.Configuration), scannedTitle);
+ instance.StartEncode(EncodeFactory.Create(job.Task, videoInfo, job.Configuration));
// Fire the Encode Started Event
this.InvokeEncodeStarted(System.EventArgs.Empty);