Make gst::Seqnum, gst::MetaSeqnum similar to Gst::ClockTime and represent invalid values in the types
The following discussion from gst-plugins-rs!90 (merged) should be addressed:
-
@slomo started a discussion: (+2 comments) I wonder if we should change the type definition of that so that seqnums (and group ids, etc) are never
0 == INVALID
, and instead useOption
s in the code. Unrelated to your changes here of course, but seems worth doing.Basically changing
gst::Seqnum
fromu32
to aNonZeroU32
, and changing the API that can take invalid seqnum (is there any at all?) to anOption<gst::Seqnum>
.
Edited by Sebastian Dröge