[gstreamer-bugs] [Bug 396774] Make GstElementDetails extensible

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Aug 14 03:26:13 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=396774
  GStreamer | gstreamer (core) | git

--- Comment #29 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2010-08-14 10:26:07 UTC ---
> I generally like the specific getter/setter too (set_doc_uri() etc) but it
> might be too limited in some cases.

Ok, how about this then:

Have a general key/value setter/getter, but instead of providing key #defines
we just provide

#define gst_element_class_set_doc_uri(klass,uri) \
    gst_element_class_set_detail_string (klass, "gst-doc-uri", (uri))

? That still results in nice-looking code, but also allows arbitrary keys, and
since we don't provide API to iterate over / enumerate the details, no one
needs any defines to strcmp against either for now.

(I can live with defines though if people don't like the above)

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the Gstreamer-bugs mailing list