summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-10-07 19:04:49 +0000
committersr55 <[email protected]>2012-10-07 19:04:49 +0000
commit6171d00692520927dc2fcc9bb43106bda15803b6 (patch)
tree3c9e846fa904ad66789d8104fe86acbbaffe034e /win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
parent5a3ba3bfe9121d14a691441093f0d191d4410be5 (diff)
WinGui: API Tidyup Part 1 of many
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5007 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Parsing/Title.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Parsing/Title.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
index f19861cfd..04d00c1f2 100644
--- a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
+++ b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
@@ -123,13 +123,13 @@ namespace HandBrake.ApplicationServices.Parsing
/// <param name="output">
/// A StringReader of output data
/// </param>
- /// <param name="userSettingService">
- /// The user Setting Service.
+ /// <param name="isDvdNavDisabled">
+ /// The is Dvd Nav Disabled.
/// </param>
/// <returns>
/// A Title Object
/// </returns>
- public static Title Parse(StringReader output, IUserSettingService userSettingService)
+ public static Title Parse(StringReader output, bool isDvdNavDisabled)
{
var thisTitle = new Title();
string nextLine = output.ReadLine();
@@ -172,7 +172,7 @@ namespace HandBrake.ApplicationServices.Parsing
}
// Multi-Angle Support if LibDvdNav is enabled
- if (!userSettingService.GetUserSetting<bool>(ASUserSettingConstants.DisableLibDvdNav))
+ if (!isDvdNavDisabled)
{
m = Regex.Match(nextLine, @" \+ angle\(s\) ([0-9])");
if (m.Success)
@@ -229,13 +229,13 @@ namespace HandBrake.ApplicationServices.Parsing
/// <param name="output">
/// The Output
/// </param>
- /// <param name="userSettingService">
- /// The user Setting Service.
+ /// <param name="isDvdNavDisabled">
+ /// The is Dvd Nav Disabled.
/// </param>
/// <returns>
/// A List of titles
/// </returns>
- public static Title[] ParseList(string output, IUserSettingService userSettingService)
+ public static Title[] ParseList(string output, bool isDvdNavDisabled)
{
var titles = new List<Title>();
var sr = new StringReader(output);
@@ -246,7 +246,7 @@ namespace HandBrake.ApplicationServices.Parsing
if (sr.Peek() == ' ') // If the character is a space, then chances are it's the combing detected line.
sr.ReadLine(); // Skip over it
else
- titles.Add(Parse(sr, userSettingService));
+ titles.Add(Parse(sr, isDvdNavDisabled));
}
return titles.ToArray();