[Openmovieeditor-developers] [Patch] Save gmerlin plugin registry
Status: Alpha
Brought to you by:
oracle2025
From: Burkhard P. <pl...@ip...> - 2009-04-20 22:17:46
|
Hi, the gmerlin plugin registry caching works only for plugins, for which a bg_cfg_section_t exists. This is not the case, if an empty registry is created in GmerlinFactory::GmerlinFactory. The solution is to try to load the registry in the constructor and save it in the destructor. The attached patch does that using bg_search_file_[read|write](), which results in a file ~/.gmerlin/openmovieeditor/config.xml. The path can of course be changed to anything else. After applying this patch, OME starts up significantly faster after the first time and valgrind complains less about uninitialized variables in some frei0r plugins (fixing the frei0r plugins would be another task...). Hope I got the coding style right, it differs pretty much from mine :) Burkhard |