[gst-devel] reading directly from file - is against policy of gstreamer?

LRN lrn1986 at gmail.com
Mon Feb 1 18:34:10 CET 2010


On 01.02.2010 19:26, Michael Joachimiak wrote:
> Hi,
> In my plugin I have so many parameters that it would be suitable for me to
> store all of them in the config file on disk(say xml file).
> During init the plugin would read the conf file which name would be given as
> a property.
>
> Is it against any policy in gstreamer? Are there any conditions when this
> approach would not work?
>   
I don't know about the policy, but GStreamer elements are not used from
gst-launch exclusively - they have API. And i think it would be
cumbersome, say, for me to add extra configure file mess to my
application just to use your elements when i can safely hardcode
parameters (or the logic to choose them) into my application directly.
And you have to remember that GObject properties are not just for kicks,
they are used in language bindings.

I think, however, that this is somewhat similar to codec profiles, so
not all hope is lost.

IMHO: support both ways of configuring your element.




More information about the gstreamer-devel mailing list