GstControlledProperty *prop;
/* create GstControlledProperty and add to self->properties list */
- if ((prop = gst_controlled_property_new (self->object, name)))
+ if ((prop = gst_controlled_property_new (self->object, name))) {
self->properties = g_list_prepend (self->properties, prop);
- else
+ GST_DEBUG_OBJECT (self->object, "property %s added", name);
+ } else
res = FALSE;
} else {
- GST_WARNING ("trying to control property %s again", name);
+ GST_WARNING_OBJECT (self->object, "trying to control property %s again",
+ name);
}
return res;
}
self->properties = g_list_remove (self->properties, prop);
//g_signal_handler_disconnect (self->object, prop->notify_handler_id);
gst_controlled_property_free (prop);
+ GST_DEBUG_OBJECT (self->object, "property %s removed", name);
} else {
res = FALSE;
}
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
- GST_INFO ("setting up a new controller");
-
self = g_object_newv (GST_TYPE_CONTROLLER, 0, NULL);
self->object = g_object_ref (object);
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
- GST_INFO ("setting up a new controller");
-
self = g_object_newv (GST_TYPE_CONTROLLER, 0, NULL);
self->object = g_object_ref (object);