mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
a589a794c8
commit
dfbb31c49f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue