summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS')
-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)