gst: fix some compiler warnings
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 5 Nov 2011 01:27:54 +0000 (01:27 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 5 Nov 2011 01:27:54 +0000 (01:27 +0000)
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

gst/gstcontroller.c
gst/gstobject.c

index 7015f9f..edda0bb 100644 (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) {
index 411ade0..5a00ee0 100644 (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);