GNOME Bugzilla – Bug 777643
streamcollection: Supposed to be immutable but nothing enforcing that
Last modified: 2018-11-03 12:39:00 UTC
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?
Let's go with a sealing function and boolean, it makes it impossible to unseal it again.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/215.