[vlc-devel] commit: module bank: use vlc_custom_create ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 8 22:07:32 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May 8 22:59:49 2008 +0300| [a8c44b836bd56fa4676f4fe18a73ee166aa0516a]
module bank: use vlc_custom_create
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8c44b836bd56fa4676f4fe18a73ee166aa0516a
---
src/modules/modules.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/modules.c b/src/modules/modules.c
index 01fe63c..4062ef2 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -123,8 +123,8 @@ void __module_InitBank( vlc_object_t *p_this )
if( p_libvlc_global->p_module_bank == NULL )
{
- p_bank = vlc_object_create( p_this, sizeof(module_bank_t) );
- p_bank->psz_object_name = strdup( "module bank" );
+ p_bank = vlc_custom_create( p_this, sizeof(module_bank_t),
+ VLC_OBJECT_GENERIC, "module bank");
p_bank->i_usage = 1;
p_bank->i_cache = p_bank->i_loaded_cache = 0;
p_bank->pp_cache = p_bank->pp_loaded_cache = NULL;
More information about the vlc-devel
mailing list