mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Running ffmpeg test in cmd.exe so it won't close automatically
This commit is contained in:
parent
b9af679c30
commit
c21bb43e6b
|
@ -192,8 +192,8 @@ private void btnTest_Click(object sender, EventArgs e)
|
|||
{
|
||||
using (Process process = new Process())
|
||||
{
|
||||
ProcessStartInfo psi = new ProcessStartInfo(Options.FFmpeg.CLIPath);
|
||||
psi.Arguments = Options.GetFFmpegArgs();
|
||||
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
|
||||
psi.Arguments = "/k ffmpeg " + Options.GetFFmpegArgs();
|
||||
psi.WorkingDirectory = Path.GetDirectoryName(Options.FFmpeg.CLIPath);
|
||||
|
||||
process.StartInfo = psi;
|
||||
|
|
Loading…
Reference in a new issue