return device;
}
+static gint
+compare_device_path (gconstpointer a, gconstpointer b, gpointer user_data)
+{
+ const GstVaDevice *pa = a, *pb = b;
+
+ return strcmp (pa->render_device_path, pb->render_device_path);
+}
+
GList *
gst_va_device_find_devices (void)
{
continue;
GST_INFO ("Found VA-API device: %s", path);
- g_queue_push_tail (&devices, gst_va_device_new (dpy, path));
+ g_queue_push_head (&devices, gst_va_device_new (dpy, path));
}
+ g_queue_sort (&devices, compare_device_path, NULL);
g_list_free_full (udev_devices, g_object_unref);
g_object_unref (client);