mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +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;
|
||||
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;
|
||||
|
||||
for (i = 0; i < monitor->priv->providers->len; i++) {
|
||||
|
@ -393,7 +400,6 @@ again:
|
|||
tmpdev = gst_device_provider_get_devices (provider);
|
||||
|
||||
GST_OBJECT_LOCK (monitor);
|
||||
update_hidden_providers_list (&hidden, provider);
|
||||
} else {
|
||||
tmpdev = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue