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:
fryshorts 2014-10-25 18:04:09 +02:00 committed by jp9000
parent ac40408dfa
commit d9a7b9062d

View File

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