|
@@ -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;
|
|
|
|
|