streamcollection: Supposed to be immutable but nothing enforcing that
Submitted by Sebastian Dröge
Quoting the docs, "Once posted, a GstStreamCollection is immutable.".
There is nothing enforcing this, and at any time new streams can be added to the collection. The addition of streams is not even thread-safe.
I'd suggest using a GstObject flag, or some new boolean, in the stream collection to mark it is "sealed" (which could be done from application code, but will also be done when the collection is stored in a message). And then make sure that adding new streams fails from that point onwards.
Any opinions on which one is nicer?