[Bug 770287] streams: Make construct only properties G_PARM_CONSTRUCTY_ONLY

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 24 06:23:57 UTC 2016


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

Edward Hervey <bilboed at bilboed.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bilboed at bilboed.com

--- Comment #3 from Edward Hervey <bilboed at bilboed.com> ---
There are actually cases where it helps for them to not be immutable.

Until an element actually "pushes out" the GstStream object (via messages or
events), it can still change its properties.

An example is creating the GstStream object very early on, and then refining
the information as you discover it (which might be in a later stage in that
element).

Furthermore, you can (as an element) subclass GstStream (avoiding duplicating
all the information present in it). Making those properties construct-only
might make life harder in those cases.

-- 
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