summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-03-03 19:30:10 +0000
committerAndy Wingo <wingo@pobox.com>2002-03-03 19:30:10 +0000
commitac9df4e988e1b4bcc69d27a5efa4a30fcce63d19 (patch)
tree8e45cd90cdad094c502f33e66d099f8b361a7b33
parente10f510ce22c553ab82f6a750b0a4fbbf51b1267 (diff)
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)
-rw-r--r--gst/gstobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstobject.c b/gst/gstobject.c
index e7f9eda7aa..6eabe15439 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);