fix ffmpeg path

This commit is contained in:
Jaex 2015-09-15 23:11:43 +03:00
parent 5e00cff459
commit 5de0e3c020

View file

@ -397,7 +397,7 @@ private void btnTest_Click(object sender, EventArgs e)
using (Process process = new Process())
{
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
psi.Arguments = "/k ffmpeg " + Options.GetFFmpegCommands();
psi.Arguments = $"/k {Path.GetFileName(Options.FFmpeg.FFmpegPath)} {Options.GetFFmpegCommands()}";
psi.WorkingDirectory = Path.GetDirectoryName(Options.FFmpeg.FFmpegPath);
process.StartInfo = psi;
@ -413,7 +413,7 @@ private void btnTest_Click(object sender, EventArgs e)
private void btnCopyPreview_Click(object sender, EventArgs e)
{
ClipboardHelpers.CopyText("ffmpeg " + Options.GetFFmpegCommands());
ClipboardHelpers.CopyText($"{Path.GetFileName(Options.FFmpeg.FFmpegPath)} {Options.GetFFmpegCommands()}");
}
private void cbCustomCommands_CheckedChanged(object sender, EventArgs e)