GStreamer registry cache

Cosimo Cecchi cosimoc at gnome.org
Tue Mar 24 14:02:05 PDT 2015


On Tue, Mar 24, 2015 at 5:33 AM, Nicolas Dufresne <
nicolas.dufresne at collabora.com> wrote:

> Le mardi 24 mars 2015 à 09:47 +0100, Víctor M. Jáquez L. a écrit :
> > I guess that simply running a gst-inspect-1.0 "at factory" and always
> > setting
> > the GST_REGISTRY_UPDATE system-wide, would be the answer.
>
> Not fully sufficient, but close. A "no patch solution" is to indeed
> generate a cache file in post install scripts. Any application that
> calls gst_init() will do, gst-inspect-1.0 is a way of course. So
> something like:
>
> # Global env
> GST_REGISTRY=/usr/share/gstreamer-1.0/registry.$(uname -m).bin
> GST_REGISTRY_UPDATE=no
>
> # In post install scripts (env must be set)
> gst_inspect-1.0 > /dev/null
>

Thanks Victor and Nicolas for the suggestions!
While I do think that your proposed solution would work (I did not know
about GST_REGISTRY_UPDATE), I was looking for a solution that does not
require to set global environment variables in the OS.

Would a patch along the lines of my first suggestion be accepted?
I'm thinking basically it would do the following:
- add a lookup in a known system-wide directory to GstRegistry; this would
only be consulted when there's no registry in $XDG_CACHE_HOME
- add a simple program that generates a full registry at a given path
- logic to still generate the cache in $XDG_CACHE_HOME at runtime when the
system one is out of date

Cheers,
Cosimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150324/94531471/attachment.html>


More information about the gstreamer-devel mailing list