mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
device-monitor: list hidden providers before listing devices
The way it was implemented could make the list updated after the list of device was filled with supposdely hidden devices
This commit is contained in:
parent
63f0b31dbf
commit
cdf7d802db
1 changed files with 7 additions and 1 deletions
|
@ -379,6 +379,13 @@ again:
|
||||||
devices = NULL;
|
devices = NULL;
|
||||||
hidden = NULL;
|
hidden = NULL;
|
||||||
|
|
||||||
|
for (i = 0; i < monitor->priv->providers->len; i++) {
|
||||||
|
GstDeviceProvider *provider =
|
||||||
|
g_ptr_array_index (monitor->priv->providers, i);
|
||||||
|
|
||||||
|
update_hidden_providers_list (&hidden, provider);
|
||||||
|
}
|
||||||
|
|
||||||
cookie = monitor->priv->cookie;
|
cookie = monitor->priv->cookie;
|
||||||
|
|
||||||
for (i = 0; i < monitor->priv->providers->len; i++) {
|
for (i = 0; i < monitor->priv->providers->len; i++) {
|
||||||
|
@ -393,7 +400,6 @@ again:
|
||||||
tmpdev = gst_device_provider_get_devices (provider);
|
tmpdev = gst_device_provider_get_devices (provider);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (monitor);
|
GST_OBJECT_LOCK (monitor);
|
||||||
update_hidden_providers_list (&hidden, provider);
|
|
||||||
} else {
|
} else {
|
||||||
tmpdev = NULL;
|
tmpdev = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue