From ac9df4e988e1b4bcc69d27a5efa4a30fcce63d19 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 3 Mar 2002 19:30:10 +0000 Subject: [PATCH] object naming will start with 0 (it was one before) Original commit message from CVS: object naming will start with 0 (it was one before) --- gst/gstobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstobject.c b/gst/gstobject.c index e7f9eda..6eabe15 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -282,7 +282,7 @@ gst_object_set_name_default (GstObject *object) object_name_counts = g_hash_table_new (g_str_hash, g_str_equal); count = GPOINTER_TO_INT (g_hash_table_lookup (object_name_counts, type_name)); - g_hash_table_insert (object_name_counts, g_strdup (type_name), GINT_TO_POINTER (++count)); + g_hash_table_insert (object_name_counts, g_strdup (type_name), GINT_TO_POINTER (count+1)); G_UNLOCK (object_name_mutex); -- 2.7.4