camera: add force_active
option to make camera always hot
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user