summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-08-30 10:45:03 +0000
committersr55 <[email protected]>2013-08-30 10:45:03 +0000
commit4220853ed08a7dd6fb35421a422ff2e7c4bed2b7 (patch)
treef38eebd57d30d86b1ed69f278a544b1a378cfb35 /win/CS/HandBrake.ApplicationServices/Services
parentaa6b8386ae5372a42ba515a707bb7f61e1fcdb4e (diff)
WinGui: Possible fix for the main feature detection.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5758 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/LibScan.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs
index ca8a4f233..fabdcb81d 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs
@@ -309,7 +309,7 @@ namespace HandBrake.ApplicationServices.Services
}
// Process into internal structures.
- this.SouceData = new Source { Titles = ConvertTitles(this.instance.Titles), ScanPath = path };
+ this.SouceData = new Source { Titles = ConvertTitles(this.instance.Titles, this.instance.FeatureTitle), ScanPath = path };
IsScanning = false;
@@ -392,10 +392,13 @@ namespace HandBrake.ApplicationServices.Services
/// <param name="titles">
/// The titles.
/// </param>
+ /// <param name="featureTitle">
+ /// The feature Title.
+ /// </param>
/// <returns>
/// The convert titles.
/// </returns>
- private static List<Title> ConvertTitles(IEnumerable<Interop.SourceData.Title> titles)
+ private static List<Title> ConvertTitles(IEnumerable<Interop.SourceData.Title> titles, int featureTitle)
{
List<Title> titleList = new List<Title>();
foreach (Interop.SourceData.Title title in titles)
@@ -411,6 +414,7 @@ namespace HandBrake.ApplicationServices.Services
AutoCropDimensions = title.AutoCropDimensions,
Fps = title.Framerate,
SourceName = title.Path,
+ MainTitle = title.TitleNumber == featureTitle
};
foreach (Interop.SourceData.Chapter chapter in title.Chapters)