X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstdeviceproviderfactory.c;h=3fbaa3b2f14e9be31148682dd5f9d366796cf4c0;hb=e6bd5b41935f125bf43e030dcb909c3537d33b31;hp=305e214b5b3cb628dc99e0ba7ecc328d5e04cf00;hpb=a837ff6581ba16180e89352a753296cd74a85a72;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstdeviceproviderfactory.c b/gst/gstdeviceproviderfactory.c index 305e214..3fbaa3b 100644 --- a/gst/gstdeviceproviderfactory.c +++ b/gst/gstdeviceproviderfactory.c @@ -23,6 +23,7 @@ /** * SECTION:gstdeviceproviderfactory + * @title: GstDeviceProviderFactory * @short_description: Create GstDeviceProviders from a factory * @see_also: #GstDeviceProvider, #GstPlugin, #GstPluginFeature, #GstPadTemplate. * @@ -196,9 +197,7 @@ gst_device_provider_register (GstPlugin * plugin, const gchar * name, return TRUE; } - factory = - GST_DEVICE_PROVIDER_FACTORY_CAST (g_object_newv - (GST_TYPE_DEVICE_PROVIDER_FACTORY, 0, NULL)); + factory = g_object_new (GST_TYPE_DEVICE_PROVIDER_FACTORY, NULL); gst_plugin_feature_set_name (GST_PLUGIN_FEATURE_CAST (factory), name); GST_LOG_OBJECT (factory, "Created new device providerfactory for type %s", g_type_name (type)); @@ -283,8 +282,7 @@ gst_device_provider_factory_get (GstDeviceProviderFactory * factory) /* create an instance of the device provider, cast so we don't assert on NULL * also set name as early as we can */ - device_provider = GST_DEVICE_PROVIDER_CAST (g_object_newv (factory->type, 0, - NULL)); + device_provider = g_object_new (factory->type, NULL); if (G_UNLIKELY (device_provider == NULL)) goto no_device_provider; @@ -498,7 +496,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]);