diff options
author | NĂcolas F. R. A. Prado <nfraprado@collabora.com> | 2021-07-02 09:21:10 -0300 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-07-06 12:40:41 +0200 |
commit | b0bf6b0aa90e2ce94ec77e389eea0e5849f2eaec (patch) | |
tree | 64973d1d420cd5db0442f5f595f292fddc26b6c1 /src/qcam/main.cpp | |
parent | d7415bc4e46fe8aa25a495c79516d9882a35a5aa (diff) |
libcamera: camera: Make stop() idempotent
Make Camera::stop() idempotent so that it can be called in any state and
consecutive times. When called in any state other than CameraRunning, it
is a no-op. This simplifies the cleanup path for applications.
Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/qcam/main.cpp')
0 files changed, 0 insertions, 0 deletions