deviceproviderfactory: ignore empty classes

This commit is contained in:
Wim Taymans 2017-02-20 10:45:57 +01:00
parent 50cb645d1f
commit c1bcf748cc

View file

@ -499,7 +499,7 @@ gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
const gchar *found;
guint len;
if (classes[0] == NULL)
if (classes[0][0] == '\0')
continue;
found = strstr (klass, classes[0]);