deviceproviderfactory: fix empty class check
authorWim Taymans <wtaymans@redhat.com>
Mon, 20 Feb 2017 09:49:46 +0000 (10:49 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 20 Feb 2017 09:49:46 +0000 (10:49 +0100)
gst/gstdeviceproviderfactory.c

index 305e214b5b3cb628dc99e0ba7ecc328d5e04cf00..4835f996592465e662ca052e642517c71328dccc 100644 (file)
@@ -498,7 +498,7 @@ gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
     const gchar *found;
     guint len;
 
-    if (classes[0] == '\0')
+    if (classes[0][0] == '\0')
       continue;
 
     found = strstr (klass, classes[0]);