seqnum: Never return a seqnum of 0, reset GST_SEQNUM_INVALID
authorJan Schmidt <jan@centricular.com>
Tue, 17 Oct 2017 15:31:12 +0000 (02:31 +1100)
committerJan Schmidt <jan@centricular.com>
Tue, 17 Oct 2017 15:31:12 +0000 (02:31 +1100)
commit6adb6b478f63f81200f0b0b99b254942542050b8
tree7b85fe6a83b6d159574751a4e1dbcaa5fa7ce60d
parent250d3e728444f468c8f8fb2344d053865ce7e95d
seqnum: Never return a seqnum of 0, reset GST_SEQNUM_INVALID

Various plugins use the value of '0' as an invalid seqnum value
(qtdemux for matching duplicated seek events, for example). Make
that behaviour explicit, create a GST_SEQNUM_INVALID value,
and ensure gst_util_seqnum_next never returns it.
gst/gstutils.c
gst/gstutils.h