[Bug 777662] GstStream: Stream type/flags setters seem like a bad idea

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jan 30 10:07:01 UTC 2017


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

--- Comment #2 from Edward Hervey <bilboed at bilboed.com> ---
Yes, it's indeed to avoid storing information in multiple places and use the
GstStream object to store all stream-related information in the creator
*before* the stream object is sent.

A simple solution to this would be to make it writable only if the refcount is
one (i.e. by the sole owner). An alternative would be to make it copy-on-write
(i.e. if the refcount is greater than one a copy is returned).

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