/* make order chosen in the end more determinable */
if (rank_a == rank_b) {
- const gchar *name_a = GST_PLUGIN_FEATURE_NAME (GST_PLUGIN_FEATURE (a));
- const gchar *name_b = GST_PLUGIN_FEATURE_NAME (GST_PLUGIN_FEATURE (b));
+ const gchar *name_a = GST_OBJECT_NAME (GST_PLUGIN_FEATURE (a));
+ const gchar *name_b = GST_OBJECT_NAME (GST_PLUGIN_FEATURE (b));
return g_ascii_strcasecmp (name_a, name_b);
}
{
GstElement *res = NULL;
- GST_DEBUG ("Creating element from factory %s",
- GST_PLUGIN_FEATURE_NAME (factory));
+ GST_DEBUG ("Creating element from factory %s", GST_OBJECT_NAME (factory));
res = gst_element_factory_create (factory, name);
if (preset && GST_IS_PRESET (res) &&
!gst_preset_load_preset (GST_PRESET (res), preset)) {
GST_WARNING ("Couldn't set preset [%s] on element [%s]",
- preset, GST_PLUGIN_FEATURE_NAME (factory));
+ preset, GST_OBJECT_NAME (factory));
gst_object_unref (res);
res = NULL;
}
formatterfact = (GstElementFactory *) tmpfmtr->data;
GST_DEBUG_OBJECT (ebin, "Trying formatter %s",
- GST_PLUGIN_FEATURE_NAME (formatterfact));
+ GST_OBJECT_NAME (formatterfact));
if ((formatter =
_create_element_and_set_preset (formatterfact, preset, NULL)))
muxerfact = (GstElementFactory *) tmpmux->data;
- GST_DEBUG ("Trying muxer %s", GST_PLUGIN_FEATURE_NAME (muxerfact));
+ GST_DEBUG ("Trying muxer %s", GST_OBJECT_NAME (muxerfact));
/* See if the muxer can sink all of our stream profile caps */
for (tmp = profiles; tmp; tmp = tmp->next) {
GST_DEBUG_OBJECT (playbin, "select group %p for %s:%s, %" GST_PTR_FORMAT,
group, GST_DEBUG_PAD_NAME (pad), caps);
- GST_DEBUG_OBJECT (playbin, "checking factory %s",
- GST_PLUGIN_FEATURE_NAME (factory));
+ GST_DEBUG_OBJECT (playbin, "checking factory %s", GST_OBJECT_NAME (factory));
/* if it's not a sink, we just make decodebin try it */
if (!gst_element_factory_list_is_type (factory,
static gboolean
filter_func (GstPluginFeature * feature, gpointer user_data)
{
- return (g_str_has_prefix (GST_PLUGIN_FEATURE_NAME (feature), "libvisual_"));
+ return (g_str_has_prefix (GST_OBJECT_NAME (feature), "libvisual_"));
}
static void
return;
}
for (l = list; l != NULL; l = l->next) {
- test_shutdown_for_factory (GST_PLUGIN_FEATURE_NAME (l->data));
+ test_shutdown_for_factory (GST_OBJECT_NAME (l->data));
}
gst_plugin_feature_list_free (list);
} else {