[Bug 777643] New: streamcollection: Supposed to be immutable but nothing enforcing that

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jan 23 10:27:34 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=777643

            Bug ID: 777643
           Summary: streamcollection: Supposed to be immutable but nothing
                    enforcing that
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: slomo at coaxion.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: bilboed at bilboed.com, thaytan at noraisin.net
     GNOME version: ---

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?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list