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

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


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

--- Comment #3 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Edward Hervey from comment #2)
> 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).

That's not so simple, because bindings :)

If the intention is to make it write-only after sending, just make it
"seal'able" via a flag or boolean.

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