diff --git a/gst/gstdeviceproviderfactory.c b/gst/gstdeviceproviderfactory.c index cb4b459b36..bb63fb78d0 100644 --- a/gst/gstdeviceproviderfactory.c +++ b/gst/gstdeviceproviderfactory.c @@ -499,7 +499,7 @@ gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory, const gchar *found; guint len; - if (classes[0] == '\0') + if (classes[0] == NULL) continue; found = strstr (klass, classes[0]);