mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
AddWaveForm might work on Linux now (vlc file name=vlc for linux/mac)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@405 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
7c8cff8b4e
commit
ecc00d62b4
@ -36,18 +36,26 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
buttonRipWave.Enabled = false;
|
||||
_cancel = false;
|
||||
|
||||
string vlcPath = Nikse.SubtitleEdit.Logic.VideoPlayers.LibVlc11xDynamic.GetVlcPath("vlc.exe");
|
||||
if (!System.IO.File.Exists(vlcPath))
|
||||
string vlcPath;
|
||||
if (Utilities.IsRunningOnLinux() || Utilities.IsRunningOnMac())
|
||||
{
|
||||
if (MessageBox.Show(Configuration.Settings.Language.AddWaveForm.VlcMediaPlayerNotFound + Environment.NewLine +
|
||||
Environment.NewLine +
|
||||
Configuration.Settings.Language.AddWaveForm.GoToVlcMediaPlayerHomePage,
|
||||
Configuration.Settings.Language.AddWaveForm.VlcMediaPlayerNotFoundTitle , MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
|
||||
vlcPath = "vlc";
|
||||
}
|
||||
else // windows
|
||||
{
|
||||
vlcPath = Nikse.SubtitleEdit.Logic.VideoPlayers.LibVlc11xDynamic.GetVlcPath("vlc.exe");
|
||||
if (!System.IO.File.Exists(vlcPath))
|
||||
{
|
||||
System.Diagnostics.Process.Start("http://www.videolan.org/");
|
||||
if (MessageBox.Show(Configuration.Settings.Language.AddWaveForm.VlcMediaPlayerNotFound + Environment.NewLine +
|
||||
Environment.NewLine +
|
||||
Configuration.Settings.Language.AddWaveForm.GoToVlcMediaPlayerHomePage,
|
||||
Configuration.Settings.Language.AddWaveForm.VlcMediaPlayerNotFoundTitle, MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
System.Diagnostics.Process.Start("http://www.videolan.org/");
|
||||
}
|
||||
buttonRipWave.Enabled = true;
|
||||
return;
|
||||
}
|
||||
buttonRipWave.Enabled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
labelPleaseWait.Visible = true;
|
||||
|
Loading…
Reference in New Issue
Block a user