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 489270 - Add option to disable registry caching.
Add option to disable registry caching.
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.13
Other Linux
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-23 05:46 UTC by Jason Zhao
Modified: 2008-01-10 10:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst.c.patch (270 bytes, patch)
2007-10-23 05:46 UTC, Jason Zhao
rejected Details | Review
gstcheck.c.patch (1.92 KB, patch)
2007-10-23 05:46 UTC, Jason Zhao
rejected Details | Review
gst-inspect.c.patch (898 bytes, patch)
2007-10-23 05:47 UTC, Jason Zhao
rejected Details | Review
gst-launch.c.patch (783 bytes, patch)
2007-10-23 05:47 UTC, Jason Zhao
rejected Details | Review
gst-typefind.c.patch (901 bytes, patch)
2007-10-23 05:47 UTC, Jason Zhao
rejected Details | Review
read-metadata.c.patch (852 bytes, patch)
2007-10-23 05:47 UTC, Jason Zhao
rejected Details | Review

Description Jason Zhao 2007-10-23 05:46:09 UTC
When user disabled Registry, many tools would not work well, such as gst-inspect, gst-launch etc, this patch is to resolve this issue.

when compiling these tools, if find define GST_DISABLE_REGISTRY, these tools will use gst_registry_scan_path to scan the plugins path and register all plugins.

Changed files:
gst/gst.c
tools/gst-inspect.c
tools/gst-launch.c
tools/gst-typefind.c
libs/gst/check/gstcheck.c
tests/examples/metadata/read-metadata.c

Motorola would like to contribute Gstreamer patch to the  Gstreamer open source community project. Please find attached the patch applicable for Gstreamer. For any questions, please feel free to contact (Zhao Liang "e3423c@motorola.com", Shi Ling "w20230@motorola.com").
Comment 1 Jason Zhao 2007-10-23 05:46:33 UTC
Created attachment 97691 [details] [review]
gst.c.patch
Comment 2 Jason Zhao 2007-10-23 05:46:48 UTC
Created attachment 97692 [details] [review]
gstcheck.c.patch
Comment 3 Jason Zhao 2007-10-23 05:47:09 UTC
Created attachment 97693 [details] [review]
gst-inspect.c.patch
Comment 4 Jason Zhao 2007-10-23 05:47:23 UTC
Created attachment 97694 [details] [review]
gst-launch.c.patch
Comment 5 Jason Zhao 2007-10-23 05:47:41 UTC
Created attachment 97695 [details] [review]
gst-typefind.c.patch
Comment 6 Jason Zhao 2007-10-23 05:47:54 UTC
Created attachment 97696 [details] [review]
read-metadata.c.patch
Comment 7 Wim Taymans 2007-10-23 10:36:43 UTC
It seems you want to disable the registry *caching* with this patch, not the registry itself. 

This functionality should go into gst.c with a new configure option to only disable the caching. We can't go adding this code to all applications.

Can you make a patch to just disable the caching? Changing to enhancement in case someone wants to try.
Comment 8 Jason Zhao 2007-10-24 02:12:30 UTC
Hi Wim,

We can do it, but if we disable registry "caching" in gstreamer core, and still want to use these tools, how do we handle? can you give some guidance?
Comment 9 Wim Taymans 2007-10-29 11:50:59 UTC
gst_init() would just always scan the default directories instead of reading the registry cache file.

Why exactly are you doing this? This should make everything slower on startup and will consume more memory.

Comment 10 Jason Zhao 2007-10-30 03:13:36 UTC
Hi Wim,

What we want is to DISABLE reading the registry cache file and scaning plugin path when gst_init(), because it will cost much time to read xml file and scan path on mobilephone.

But if we use configure "--disable-registry" to disable this feature, some tools such as gst-inspect will not work, it is really a problem, so we do these patchs.

Now we find another feature "binary registry" which can save time even with "registry" feature by our test.
Comment 11 Jason Zhao 2007-10-30 06:18:18 UTC
For our use case, if we use "--disable-registry", in our app, we will load plugin libs manually, all what we do are to reduce the gst_init time. but something inconvenient is that we can not use gst-inspect etc tools, so we made these patchs.
Now we are using "binary registry", it is good for our usecase, saving time and no need to load plugin lib manually.
Comment 12 Julien MOUTTE 2008-01-03 12:22:18 UTC
If you are loading plugins manually and you disable the registry, tools like gst-inspect and gst-launch don't make much sense.
If you are using the binary registry then they should work fine. Can you confirm and let us know if we can close that bug ?

[This bug is part of Fluendo support for Motorola.]
Comment 13 Jason Zhao 2008-01-08 02:07:17 UTC
Yes, please close this bug.