camera: add force_active option to make camera always hot

This commit is contained in:
Kamil Trzcinski
2023-02-24 20:02:42 +01:00
parent 6d30270b16
commit 34ff200ceb
5 changed files with 13 additions and 7 deletions

View File

@ -117,5 +117,5 @@ int camera_set_params(camera_t *camera)
int camera_run(camera_t *camera)
{
bool running = false;
return links_loop(camera->links, &running);
return links_loop(camera->links, camera->options.force_active, &running);
}

View File

@ -32,6 +32,7 @@ typedef struct camera_options_s {
float low_res_factor;
bool auto_focus;
unsigned auto_reconnect;
bool force_active;
union {
bool vflip;
unsigned vflip_align;