mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
9b3b823aa5
commit
e3399e60a2
2 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue