libs/gst/controller/gstcontroller.c: Add parameter guards.

Original commit message from CVS:
* libs/gst/controller/gstcontroller.c:
Add parameter guards.
This commit is contained in:
Stefan Kost 2008-05-27 20:19:17 +00:00
parent 9b3b823aa5
commit e3399e60a2
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-05-27 Stefan Kost <ensonic@users.sf.net>
* libs/gst/controller/gstcontroller.c:
Add parameter guards.
2008-05-27 Stefan Kost <ensonic@users.sf.net> 2008-05-27 Stefan Kost <ensonic@users.sf.net>
* tests/check/gst/gstpipeline.c: * tests/check/gst/gstpipeline.c:

View file

@ -559,6 +559,9 @@ gst_controller_get_control_source (GstController * self, gchar * property_name)
GstControlledProperty *prop; GstControlledProperty *prop;
GstControlSource *ret = NULL; GstControlSource *ret = NULL;
g_return_val_if_fail (GST_IS_CONTROLLER (self), NULL);
g_return_val_if_fail (property_name, NULL);
g_mutex_lock (self->lock); g_mutex_lock (self->lock);
if ((prop = gst_controller_find_controlled_property (self, property_name))) { if ((prop = gst_controller_find_controlled_property (self, property_name))) {
ret = prop->csource; ret = prop->csource;