libs/gst/control/: fix lvalue casts for real

Original commit message from CVS:
* libs/gst/control/dparam.c: (gst_dparam_attach),
(gst_dparam_detach):
* libs/gst/control/dparammanager.c: (gst_dpman_init):
fix lvalue casts for real
This commit is contained in:
Benjamin Otte 2004-03-24 15:51:27 +00:00
parent 7f6e97ebe9
commit da1c2f8f2a
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2004-03-24 Benjamin Otte <otte@gnome.org>
* libs/gst/control/dparam.c: (gst_dparam_attach),
(gst_dparam_detach):
* libs/gst/control/dparammanager.c: (gst_dpman_init):
fix lvalue casts for real
2004-03-24 Benjamin Otte <otte@gnome.org> 2004-03-24 Benjamin Otte <otte@gnome.org>
* gst/schedulers/gstbasicscheduler.c: * gst/schedulers/gstbasicscheduler.c:

View file

@ -313,7 +313,7 @@ gst_dparam_attach (GstDParam * dparam, GstDParamManager * manager,
g_return_if_fail (G_PARAM_SPEC_VALUE_TYPE (param_spec) == g_return_if_fail (G_PARAM_SPEC_VALUE_TYPE (param_spec) ==
GST_DPARAM_TYPE (dparam)); GST_DPARAM_TYPE (dparam));
GST_DPARAM_NAME (dparam) = g_param_spec_get_name (param_spec); gst_object_set_name (GST_OBJECT (dparam), g_param_spec_get_name (param_spec));
GST_DPARAM_PARAM_SPEC (dparam) = param_spec; GST_DPARAM_PARAM_SPEC (dparam) = param_spec;
GST_DPARAM_MANAGER (dparam) = manager; GST_DPARAM_MANAGER (dparam) = manager;
GST_DPARAM_UNIT_NAME (dparam) = unit_name; GST_DPARAM_UNIT_NAME (dparam) = unit_name;
@ -337,7 +337,7 @@ gst_dparam_detach (GstDParam * dparam)
GST_DEBUG ("detaching %s from dparam %p", GST_DPARAM_NAME (dparam), dparam); GST_DEBUG ("detaching %s from dparam %p", GST_DPARAM_NAME (dparam), dparam);
GST_DPARAM_NAME (dparam) = NULL; gst_object_set_name (GST_OBJECT (dparam), NULL);
GST_DPARAM_PARAM_SPEC (dparam) = NULL; GST_DPARAM_PARAM_SPEC (dparam) = NULL;
GST_DPARAM_MANAGER (dparam) = NULL; GST_DPARAM_MANAGER (dparam) = NULL;
} }

View file

@ -137,7 +137,6 @@ gst_dpman_init (GstDParamManager * dpman)
{ {
GST_DPMAN_DPARAMS (dpman) = g_hash_table_new (g_str_hash, g_str_equal); GST_DPMAN_DPARAMS (dpman) = g_hash_table_new (g_str_hash, g_str_equal);
GST_DPMAN_DPARAMS_LIST (dpman) = NULL; GST_DPMAN_DPARAMS_LIST (dpman) = NULL;
GST_DPMAN_NAME (dpman) = NULL;
GST_DPMAN_PARENT (dpman) = NULL; GST_DPMAN_PARENT (dpman) = NULL;
GST_DPMAN_MODE_NAME (dpman) = NULL; GST_DPMAN_MODE_NAME (dpman) = NULL;
GST_DPMAN_MODE (dpman) = NULL; GST_DPMAN_MODE (dpman) = NULL;