linux-v4l2: Update properties when devices change.
This causes the properties for v4l2 sources to be refreshed when a device is disconnected/connected.
This commit is contained in:
parent
ac40408dfa
commit
d9a7b9062d
@ -581,6 +581,8 @@ static void device_added(const char *dev, void *vptr)
|
|||||||
{
|
{
|
||||||
V4L2_DATA(vptr);
|
V4L2_DATA(vptr);
|
||||||
|
|
||||||
|
obs_source_update_properties(data->source);
|
||||||
|
|
||||||
if (strcmp(data->device_id, dev))
|
if (strcmp(data->device_id, dev))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -597,6 +599,8 @@ static void device_removed(const char *dev, void *vptr)
|
|||||||
{
|
{
|
||||||
V4L2_DATA(vptr);
|
V4L2_DATA(vptr);
|
||||||
|
|
||||||
|
obs_source_update_properties(data->source);
|
||||||
|
|
||||||
if (strcmp(data->device_id, dev))
|
if (strcmp(data->device_id, dev))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user