After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773089 - gstreamer: set env GST_REGISTRY_DISABLE=yes to disable registry
gstreamer: set env GST_REGISTRY_DISABLE=yes to disable registry
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other All
: Normal enhancement
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-17 12:08 UTC by Stian Selnes (stianse)
Modified: 2016-11-01 18:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstreamer: set env GST_REGISTRY_DISABLE=yes to disable registry (3.39 KB, patch)
2016-10-17 12:08 UTC, Stian Selnes (stianse)
committed Details | Review

Description Stian Selnes (stianse) 2016-10-17 12:08:51 UTC
Setting the environment variable GST_REGISTRY_DISABLE=yes gives similar
functionality as to compiling with GST_DISABLE_REGISTRY. The benefit is
that the registry can be programmatically disabled by the application before
calling gst_init() while keeping the registry enabled when using gst-launch
etc.
Comment 1 Stian Selnes (stianse) 2016-10-17 12:08:55 UTC
Created attachment 337837 [details] [review]
gstreamer: set env GST_REGISTRY_DISABLE=yes to disable registry

If GST_REGISTRY_DISABLE=yes the registry is disabled similar to
compile time switch GST_DISABLE_REGISTRY.
Comment 2 Tim-Philipp Müller 2016-10-17 16:49:12 UTC
Does it make sense to have an env var for this then rather than dedicated API such as gst_disable_registry() or so?
Comment 3 Stian Selnes (stianse) 2016-10-24 09:28:58 UTC
Although an API would also work, I think an env var is more consistent with the current way such things are controlled by the application / user:

* There are already env vars such as GST_REGISTRY, GST_REGISTRY_UPDATE, GST_REGISTRY_FORK etc. GST_REGISTRY_DISABLE is consistent with these.

* If it's an API we introduce a gst-function that must be called before gst_init() in order to have an effect.
Comment 4 Tim-Philipp Müller 2016-10-25 17:48:06 UTC
Fair enough. Can always add API later.
Comment 5 Sebastian Dröge (slomo) 2016-11-01 18:32:06 UTC
commit fd728c253139daa1ced5fdedf78540ee14a9f480
Author: Stian Selnes <stian.selnes@gmail.com>
Date:   Thu May 2 10:09:29 2013 +0200

    registry: set env GST_REGISTRY_DISABLE=yes to disable registry
    
    If GST_REGISTRY_DISABLE=yes the registry is disabled similar to
    compile time switch GST_DISABLE_REGISTRY.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773089