diff --git a/gst-libs/gst/audio/mixerutils.c b/gst-libs/gst/audio/mixerutils.c index 94cdde3dc7..ba912d997a 100644 --- a/gst-libs/gst/audio/mixerutils.c +++ b/gst-libs/gst/audio/mixerutils.c @@ -178,8 +178,8 @@ element_factory_rank_compare_func (gconstpointer a, gconstpointer b) /* 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); } diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 1631857e34..6947f163c5 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -768,13 +768,12 @@ _create_element_and_set_preset (GstElementFactory * factory, { 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; } @@ -1475,7 +1474,7 @@ _get_formatter (GstEncodeBin * ebin, GstEncodingProfile * sprof) 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))) @@ -1524,7 +1523,7 @@ _get_muxer (GstEncodeBin * ebin) 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) { diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index e738cf2d45..bb4e627685 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -3110,8 +3110,7 @@ autoplug_select_cb (GstElement * decodebin, GstPad * pad, 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, diff --git a/tests/check/elements/libvisual.c b/tests/check/elements/libvisual.c index 0f95006006..7235b8122c 100644 --- a/tests/check/elements/libvisual.c +++ b/tests/check/elements/libvisual.c @@ -23,7 +23,7 @@ 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 @@ -88,7 +88,7 @@ GST_START_TEST (test_shutdown) 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 {