Merge pull request #43 from gdzhu/gdzhu/skip_overlay_when_not_specified
skip overlay processing when no overlay is specified
This commit is contained in:
@@ -155,9 +155,14 @@ int main(int argc, char *argv[])
|
||||
std::cout << "Rotation Time: " << rotationSeconds << std::endl;
|
||||
std::cout << "Overlay input: " << overlay << std::endl;
|
||||
}
|
||||
|
||||
Overlay o(overlay);
|
||||
o.setDebugMode(debugMode);
|
||||
w.setOverlay(&o);
|
||||
if (!overlay.empty())
|
||||
{
|
||||
w.setOverlay(&o);
|
||||
}
|
||||
|
||||
w.setAspect(aspect);
|
||||
w.setDebugMode(debugMode);
|
||||
w.setFitAspectAxisToWindow(fitAspectAxisToWindow);
|
||||
|
||||
Reference in New Issue
Block a user