From 2743ae04267b9aed4f3f1ef37634cc94a9bef7ff Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 12 Dec 2001 18:52:21 +0000 Subject: [PATCH] Make sure the hashtable is initialized when the object is used. Original commit message from CVS: Make sure the hashtable is initialized when the object is used. --- libs/control/gstdparammanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/control/gstdparammanager.c b/libs/control/gstdparammanager.c index de03640a5a..b925683c6c 100644 --- a/libs/control/gstdparammanager.c +++ b/libs/control/gstdparammanager.c @@ -39,7 +39,6 @@ static guint gst_dpman_process_noop(GstDParamManager *dpman, guint frame_count); void _gst_dpman_initialize() { - _element_registry = g_hash_table_new(NULL,NULL); } GType @@ -83,6 +82,7 @@ gst_dpman_class_init (GstDParamManagerClass *klass) gst_dpman_register_mode (klass, "disabled", gst_dpman_preprocess_noop, gst_dpman_process_noop, NULL, NULL); + _element_registry = g_hash_table_new(NULL,NULL); } static void