summaryrefslogtreecommitdiff
path: root/gtk2_ardour/transcode_ffmpeg.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-03-05 19:06:29 +0100
committerRobin Gareus <robin@gareus.org>2019-03-05 22:49:18 +0100
commita390d8d3ca9f6e080b790a4d40f1687b498b1ed3 (patch)
tree1716c0009e0326c7f58f314d6e04db391f5c972f /gtk2_ardour/transcode_ffmpeg.cc
parente1ffe7857ffdd6d29a8548267571e76e569c1fe9 (diff)
Use enum for exec stderr parameter (2/2)
Diffstat (limited to 'gtk2_ardour/transcode_ffmpeg.cc')
-rw-r--r--gtk2_ardour/transcode_ffmpeg.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/transcode_ffmpeg.cc b/gtk2_ardour/transcode_ffmpeg.cc
index a26c7622f5..9030cbfe5d 100644
--- a/gtk2_ardour/transcode_ffmpeg.cc
+++ b/gtk2_ardour/transcode_ffmpeg.cc
@@ -98,7 +98,7 @@ TranscodeFfmpeg::probe ()
ffcmd = new ARDOUR::SystemExec(ffprobe_exe, argp);
ffcmd->ReadStdout.connect_same_thread (*this, boost::bind (&TranscodeFfmpeg::ffprobeparse, this, _1 ,_2));
ffcmd->Terminated.connect (*this, invalidator (*this), boost::bind (&TranscodeFfmpeg::ffexit, this), gui_context());
- if (ffcmd->start(1)) {
+ if (ffcmd->start (SystemExec::IgnoreAndClose)) {
ffexit();
return false;
}
@@ -386,7 +386,7 @@ TranscodeFfmpeg::encode (std::string outfile, std::string inf_a, std::string inf
ffcmd = new ARDOUR::SystemExec(ffmpeg_exe, argp);
ffcmd->ReadStdout.connect_same_thread (*this, boost::bind (&TranscodeFfmpeg::ffmpegparse_v, this, _1 ,_2));
ffcmd->Terminated.connect (*this, invalidator (*this), boost::bind (&TranscodeFfmpeg::ffexit, this), gui_context());
- if (ffcmd->start(2)) {
+ if (ffcmd->start (SystemExec::MergeWithStdin)) {
ffexit();
return false;
}
@@ -434,7 +434,7 @@ TranscodeFfmpeg::extract_audio (std::string outfile, ARDOUR::samplecnt_t /*sampl
ffcmd = new ARDOUR::SystemExec(ffmpeg_exe, argp);
ffcmd->ReadStdout.connect_same_thread (*this, boost::bind (&TranscodeFfmpeg::ffmpegparse_a, this, _1 ,_2));
ffcmd->Terminated.connect (*this, invalidator (*this), boost::bind (&TranscodeFfmpeg::ffexit, this), gui_context());
- if (ffcmd->start(2)) {
+ if (ffcmd->start (SystemExec::MergeWithStdin)) {
ffexit();
return false;
}
@@ -494,7 +494,7 @@ TranscodeFfmpeg::transcode (std::string outfile, const int outw, const int outh,
ffcmd = new ARDOUR::SystemExec(ffmpeg_exe, argp);
ffcmd->ReadStdout.connect_same_thread (*this, boost::bind (&TranscodeFfmpeg::ffmpegparse_v, this, _1 ,_2));
ffcmd->Terminated.connect (*this, invalidator (*this), boost::bind (&TranscodeFfmpeg::ffexit, this), gui_context());
- if (ffcmd->start(2)) {
+ if (ffcmd->start (SystemExec::MergeWithStdin)) {
ffexit();
return false;
}