Skip to content

Commit

Permalink
Merge pull request #2864 from thomasjacquin/add-extraargs-to-end-of-c…
Browse files Browse the repository at this point in the history
…md-line

Update capture_RPi.cpp: add extraargs to end of cmd line
  • Loading branch information
EricClaeys authored Jul 7, 2023
2 parents a49d917 + 5f56c29 commit d6c3c24
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/capture_RPi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@ int RPicapture(config cg, cv::Mat *image)
ss << cg.fullFilename;
command += " --output '" + ss.str() + "'";

if (*cg.extraArgs)
{
// add the extra arguments as is; do not parse them
ss.str("");
ss << cg.extraArgs;
command += " " + ss.str();
}

if (cg.isLibcamera)
{
// libcamera tuning file
Expand Down Expand Up @@ -318,6 +310,14 @@ int RPicapture(config cg, cv::Mat *image)
command += " --quality " + ss.str();
}

if (*cg.extraArgs)
{
// add the extra arguments as is; do not parse them
ss.str("");
ss << cg.extraArgs;
command += " " + ss.str();
}

// Log the command we're going to run without the
// LIBCAMERA_LOG...
// string and without any redirect of stdout or stderr.
Expand Down

0 comments on commit d6c3c24

Please sign in to comment.