controller: fix g_return statement
authorStefan Sauer <ensonic@users.sf.net>
Fri, 4 Nov 2011 20:37:21 +0000 (21:37 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Sat, 5 Nov 2011 10:02:42 +0000 (11:02 +0100)
gst/gstcontroller.c

index 5a317ac..c58a1ff 100644 (file)
@@ -560,7 +560,7 @@ gst_controller_set_disabled (GstController * self, gboolean disabled)
   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) {