1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-08 11:34:05 +02:00

Change default CultureInfo in video player

This commit is contained in:
chylex 2017-08-27 23:12:52 +02:00
parent 445e6fcec0
commit 7ea7366a43
2 changed files with 7 additions and 3 deletions

View File

@ -150,7 +150,7 @@ private void timerSync_Tick(object sender, EventArgs e){
private void timerData_Tick(object sender, EventArgs e){
timerData.Stop();
pipe.Write("vol", trackBarVolume.Value.ToString(CultureInfo.InvariantCulture));
pipe.Write("vol", trackBarVolume.Value.ToString());
}
private void progressSeek_MouseDown(object sender, MouseEventArgs e){

View File

@ -1,5 +1,6 @@
using System;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
namespace TweetDuck.Video{
@ -17,14 +18,17 @@ private static int Main(string[] args){
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
IntPtr ownerHandle;
int defaultVolume;
string videoUrl;
string pipeToken;
try{
ownerHandle = new IntPtr(int.Parse(args[0], NumberStyles.Integer, CultureInfo.InvariantCulture));
defaultVolume = int.Parse(args[1], NumberStyles.Integer, CultureInfo.InvariantCulture);
ownerHandle = new IntPtr(int.Parse(args[0], NumberStyles.Integer));
defaultVolume = int.Parse(args[1], NumberStyles.Integer);
videoUrl = new Uri(args[2], UriKind.Absolute).AbsoluteUri;
pipeToken = args[3];
}catch{