diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cam/capture_script.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cam/capture_script.cpp b/src/cam/capture_script.cpp index a8304433..5e85b3ca 100644 --- a/src/cam/capture_script.cpp +++ b/src/cam/capture_script.cpp @@ -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; |