Assign IDs starting from 1 instead of from 0.

Original commit message from CVS:
Assign IDs starting from 1 instead of from 0.
This commit is contained in:
Joshua N. Pritikin 2003-07-25 03:11:59 +00:00
parent a589a794c8
commit dfbb31c49f

View file

@ -555,7 +555,7 @@ gst_index_get_writer_id (GstIndex *index, GstObject *writer, gint *id)
}
/* if the index could not resolve, we allocate one ourselves */
if (!success) {
*id = index->last_id++;
*id = ++index->last_id;
}
entry = gst_index_add_id (index, *id, writer_string);