mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-28 08:34:06 +02:00
Change default CultureInfo in video player
This commit is contained in:
parent
445e6fcec0
commit
7ea7366a43
@ -150,7 +150,7 @@ private void timerSync_Tick(object sender, EventArgs e){
|
|||||||
|
|
||||||
private void timerData_Tick(object sender, EventArgs e){
|
private void timerData_Tick(object sender, EventArgs e){
|
||||||
timerData.Stop();
|
timerData.Stop();
|
||||||
pipe.Write("vol", trackBarVolume.Value.ToString(CultureInfo.InvariantCulture));
|
pipe.Write("vol", trackBarVolume.Value.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void progressSeek_MouseDown(object sender, MouseEventArgs e){
|
private void progressSeek_MouseDown(object sender, MouseEventArgs e){
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Threading;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace TweetDuck.Video{
|
namespace TweetDuck.Video{
|
||||||
@ -17,14 +18,17 @@ private static int Main(string[] args){
|
|||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
|
||||||
|
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
|
||||||
IntPtr ownerHandle;
|
IntPtr ownerHandle;
|
||||||
int defaultVolume;
|
int defaultVolume;
|
||||||
string videoUrl;
|
string videoUrl;
|
||||||
string pipeToken;
|
string pipeToken;
|
||||||
|
|
||||||
try{
|
try{
|
||||||
ownerHandle = new IntPtr(int.Parse(args[0], NumberStyles.Integer, CultureInfo.InvariantCulture));
|
ownerHandle = new IntPtr(int.Parse(args[0], NumberStyles.Integer));
|
||||||
defaultVolume = int.Parse(args[1], NumberStyles.Integer, CultureInfo.InvariantCulture);
|
defaultVolume = int.Parse(args[1], NumberStyles.Integer);
|
||||||
videoUrl = new Uri(args[2], UriKind.Absolute).AbsoluteUri;
|
videoUrl = new Uri(args[2], UriKind.Absolute).AbsoluteUri;
|
||||||
pipeToken = args[3];
|
pipeToken = args[3];
|
||||||
}catch{
|
}catch{
|
||||||
|
Loading…
Reference in New Issue
Block a user