[gstreamer-bugs] [Bug 396779] Preset interface for elements

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Apr 18 00:01:14 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=396779

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #76 from Stefan Kost (gstreamer, gtkdoc dev)  2008-04-18 07:01 UTC -------
Mike, as explained (e.g. comments #52, #57, #61) already is an interface method
and a the patch brings a default. Its is generally useful for effects and
generators (both audio and video) that have lots of parameters. For audio one
would loop a sequence and hit randomize to get some fresh sounds (which one
would tune then and maybe save as a new preset).

If an element stops working after setting a random presets its broken and need
to be fixed. The randomization is done within the paramspec bounds.

Now it clearly does not make any sense for e.g. encoders. those can override it
with a dummy method. But then I can't imagine why one would create a ui where
one can call randomize preset on an encoder.

One alternative would be to have a dummy default (vmethod=NULL) and just
provide the randomization as a exported function, so that elements can select
it 8and we don't have duplicated code).



Marc-Andre: I was looking at several elements, but could not think of any
use-case for min/max.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=396779.




More information about the Gstreamer-bugs mailing list