提交 d9a7b906 编写于 作者: F fryshorts 提交者: jp9000

linux-v4l2: Update properties when devices change.

This causes the properties for v4l2 sources to be refreshed when a
device is disconnected/connected.
上级 ac40408d
......@@ -581,6 +581,8 @@ static void device_added(const char *dev, void *vptr)
{
V4L2_DATA(vptr);
obs_source_update_properties(data->source);
if (strcmp(data->device_id, dev))
return;
......@@ -597,6 +599,8 @@ static void device_removed(const char *dev, void *vptr)
{
V4L2_DATA(vptr);
obs_source_update_properties(data->source);
if (strcmp(data->device_id, dev))
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册