gst: fix some compiler warnings

gstobject.c: In function 'gst_object_has_active_automation':
gstobject.c:1076:3: error: 'return' with no value, in function returning non-void
gstcontroller.c: In function 'gst_controller_is_active':
gstcontroller.c:509:3: error: 'return' with no value, in function returning non-void
This commit is contained in:
Tim-Philipp Müller 2011-11-05 01:27:54 +00:00
parent efd4402ee0
commit be70cebc31
2 changed files with 2 additions and 2 deletions

View file

@ -506,7 +506,7 @@ gst_controller_is_active (GstController * self)
GList *node;
GstControlledProperty *prop;
g_return_if_fail (GST_IS_CONTROLLER (self));
g_return_val_if_fail (GST_IS_CONTROLLER (self), FALSE);
g_mutex_lock (self->lock);
for (node = self->properties; node; node = node->next) {

View file

@ -1073,7 +1073,7 @@ gst_object_has_active_automation (GstObject * object)
{
gboolean res = FALSE;
g_return_if_fail (GST_IS_OBJECT (object));
g_return_val_if_fail (GST_IS_OBJECT (object), FALSE);
if (object->ctrl)
res = gst_controller_is_active ((GstController *) object->ctrl);