From e3399e60a2e46007e229498de329a9f8d642eaba Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 27 May 2008 20:19:17 +0000 Subject: [PATCH] libs/gst/controller/gstcontroller.c: Add parameter guards. Original commit message from CVS: * libs/gst/controller/gstcontroller.c: Add parameter guards. --- ChangeLog | 5 +++++ libs/gst/controller/gstcontroller.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1fee5b523e..ebb379871e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-27 Stefan Kost + + * libs/gst/controller/gstcontroller.c: + Add parameter guards. + 2008-05-27 Stefan Kost * tests/check/gst/gstpipeline.c: diff --git a/libs/gst/controller/gstcontroller.c b/libs/gst/controller/gstcontroller.c index 61833c6114..16d05e4f20 100644 --- a/libs/gst/controller/gstcontroller.c +++ b/libs/gst/controller/gstcontroller.c @@ -559,6 +559,9 @@ gst_controller_get_control_source (GstController * self, gchar * property_name) GstControlledProperty *prop; 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); if ((prop = gst_controller_find_controlled_property (self, property_name))) { ret = prop->csource;