Commit d6c14e70 authored by Thibault Saunier's avatar Thibault Saunier

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
parent 3f932901
Pipeline #54565 passed with stages
in 118 minutes and 44 seconds
......@@ -384,6 +384,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++) {
......@@ -398,7 +405,6 @@ again:
tmpdev = gst_device_provider_get_devices (provider);
GST_OBJECT_LOCK (monitor);
update_hidden_providers_list (&hidden, provider);
} else {
tmpdev = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment