[vlc-devel] commit: Load out-of-tree plugin's text domain ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jan 28 19:00:03 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 28 19:48:25 2010 +0200| [e2828c396d3adb64f8ef1255c7494c726af2fbc6] | committer: Rémi Denis-Courmont 

Load out-of-tree plugin's text domain

They cannot do it themselves. Their strings may be in the plugins
cache, in which case the plugins may not be loaded at all.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2828c396d3adb64f8ef1255c7494c726af2fbc6
---

 src/modules/cache.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 5517d3a..643381b 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -257,6 +257,8 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
 
         LOAD_STRING( pp_cache[i]->p_module->psz_filename );
         LOAD_STRING( pp_cache[i]->p_module->domain );
+        if( pp_cache[i]->p_module->domain != NULL )
+            vlc_bindtextdomain( pp_cache[i]->p_module->domain );
 
         LOAD_IMMEDIATE( i_submodules );
 




More information about the vlc-devel mailing list