We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472ee70 commit a2222cbCopy full SHA for a2222cb
1 file changed
VidCoder/Model/Players/VlcPlayer.cs
@@ -20,16 +20,33 @@ public bool Installed
20
public void PlayTitle(string discPath, int title)
21
{
22
string vlcExePath = RegKey.GetValue(string.Empty) as string;
23
+ string version = RegKey.GetValue("Version") as string;
24
+
25
+ if (!discPath.EndsWith(@"\"))
26
+ {
27
+ discPath += @"\";
28
+ }
29
30
+ string arguments;
31
+ if (version.StartsWith("1"))
32
33
+ arguments = "DVD://\"" + discPath + "\\\"@" + title;
34
35
+ else
36
37
+ arguments = "dvd:///\"" + discPath + "\\\"#" + title;
38
39
40
var process = new Process();
41
process.StartInfo =
42
new ProcessStartInfo
- {
43
44
FileName = vlcExePath,
- Arguments = "DVD://\"" + discPath + "\"@" + title
- };
45
+ Arguments = arguments
46
+ };
47
48
process.Start();
49
50
}
51
52
public string Id
0 commit comments