deepstream-services-library icon indicating copy to clipboard operation
deepstream-services-library copied to clipboard

Refactor USB Source constructor to generate a unique/incremental device-location for each source.

Open rjhowell44 opened this issue 2 years ago • 1 comments

The current implementation does not set the device-location, leaving the setting to default to /dev/video0. . Therefore, only once USB camera can be used. The constructor will be updated to generate the unique device-location. Rules are as follows.

A unique device-location is assigned to each USB Source on creation, starting with /dev/video0, followed by /dev/video1, and so on. The default assignment can be overridden by calling dsl_source_usb_device_location_set. The call will fail if the given device-location is not unique. If a source is deleted, the device-location will be re-assigned to a new USB Source if one is created.

rjhowell44 avatar Sep 27 '22 00:09 rjhowell44

Merged into v0.26.alpha

rjhowell44 avatar Sep 27 '22 00:09 rjhowell44