cam: capture_script: Check parseFrames() return value for errors
parseFrames() return value was ignored. If there was an error during frame parsing, parsing was not stopped correctly. Signed-off-by: Daniel Semkowicz <dse@thaumatec.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
f71c76ceff
commit
f1776100f5
1 changed files with 3 additions and 1 deletions
|
@ -150,7 +150,9 @@ int CaptureScript::parseScript(FILE *script)
|
|||
std::string section = eventScalarValue(event);
|
||||
|
||||
if (section == "frames") {
|
||||
parseFrames();
|
||||
ret = parseFrames();
|
||||
if (ret)
|
||||
return ret;
|
||||
} else {
|
||||
std::cerr << "Unsupported section '" << section << "'"
|
||||
<< std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue