static gboolean
gst_registry_chunks_save_feature (GList ** list, GstPluginFeature * feature)
{
- const gchar *type_name = g_type_name (G_OBJECT_TYPE (feature));
+ const gchar *type_name = G_OBJECT_TYPE_NAME (feature);
GstRegistryChunkPluginFeature *pf = NULL;
GstRegistryChunk *chk = NULL;
GList *walk;
walk = g_list_next (walk), ef->ninterfaces++) {
gst_registry_chunks_save_const_string (list, (gchar *) walk->data);
}
- GST_DEBUG ("Feature %s: saved %d interfaces %d pad templates",
- GST_OBJECT_NAME (feature), ef->ninterfaces, ef->npadtemplates);
+ GST_DEBUG_OBJECT (feature, "saved %d interfaces %d pad templates",
+ ef->ninterfaces, ef->npadtemplates);
/* save uritypes */
if (GST_URI_TYPE_IS_VALID (factory->uri_type)) {
ef->nuriprotocols++;
}
*list = g_list_prepend (*list, subchk);
- GST_DEBUG ("Saved %d UriTypes", ef->nuriprotocols);
+ GST_DEBUG_OBJECT (feature, "Saved %d UriTypes", ef->nuriprotocols);
} else {
g_warning ("GStreamer feature '%s' is URI handler but does not provide"
" any protocols it can handle", GST_OBJECT_NAME (feature));
GstStaticPadTemplate *template = walk->data;
if (!gst_registry_chunks_save_pad_template (list, template)) {
- GST_ERROR ("Can't fill pad template, aborting.");
+ GST_ERROR_OBJECT (feature, "Can't fill pad template, aborting.");
goto fail;
}
}
factory->extensions[tff->nextensions++]);
}
}
+ GST_DEBUG_OBJECT (feature, "saved %d extensions", tff->nextensions);
/* save caps */
if (factory->caps) {
GstCaps *fcaps = gst_caps_ref (factory->caps);
gst_registry_chunks_save_const_string (list, "");
}
} else {
- GST_WARNING ("unhandled feature type '%s'", type_name);
+ GST_WARNING_OBJECT (feature, "unhandled feature type '%s'", type_name);
}
if (pf) {