utils: Never return a group_id of 0, add GST_GROUP_ID_INVALID
authorEdward Hervey <edward@centricular.com>
Tue, 5 Dec 2017 16:28:55 +0000 (17:28 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 5 Dec 2017 17:19:32 +0000 (18:19 +0100)
commite5c15f6b9605a1e682a60ea1bfadae831e651a41
tree5004ecda8f202da1cbf1f16a0fcdca52eb88e90d
parent16d9954dd5a294f0a1e320b37e2582413cc516a8
utils: Never return a group_id of 0, add GST_GROUP_ID_INVALID

Various plugins use special values (0 or G_MAXUINT32) as an
invalid/unset group_id, but nothing guarantees a groupid won't have
that value.

Instead define a value which group_id will never have and make
gst_group_id_next() always return a value different from that.

API: GST_GROUP_ID_INVALID
docs/gst/gstreamer-sections.txt
gst/gstutils.c
gst/gstutils.h