gst/gstobject.c: Put the gst_object_get_name() back in.
authorStefan Kost <ensonic@users.sourceforge.net>
Thu, 28 Aug 2008 20:12:54 +0000 (20:12 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Thu, 28 Aug 2008 20:12:54 +0000 (20:12 +0000)
Original commit message from CVS:
* gst/gstobject.c:
Put the gst_object_get_name() back in.

ChangeLog
gst/gstobject.c

index 81873f7..8783140 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-08-28  Stefan Kost  <ensonic@users.sf.net>
 
+       * gst/gstobject.c:
+         Put the gst_object_get_name() back in.
+
+2008-08-28  Stefan Kost  <ensonic@users.sf.net>
+
        * gst/gstpadtemplate.c:
          The old behaviour was that gst_pad_template_new() takes ownership of
          the caps. As we now call g_object_new() which calls g_object_set() and
index 1d41081..8e14e65 100644 (file)
@@ -1100,11 +1100,13 @@ gst_object_get_path_string (GstObject * object)
     if (GST_IS_OBJECT (parents->data)) {
       GstObject *item = GST_OBJECT_CAST (parents->data);
       GstObjectClass *oclass = GST_OBJECT_GET_CLASS (item);
+      gchar *objname = gst_object_get_name (item);
 
-      component = g_strdup_printf ("%s:%s", typename, GST_OBJECT_NAME (item));
+      component = g_strdup_printf ("%s:%s", typename, objname);
       separator = oclass->path_string_separator;
       /* and unref now */
       gst_object_unref (item);
+      g_free (objname);
     } else {
       if (typename) {
         component = g_strdup_printf ("%s:%p", typename, parents->data);