GstProps *props;
if (caps1->id != caps2->id) {
- GST_DEBUG (GST_CAT_CAPS,"mime types differ (%s to %s)",
+ GST_DEBUG (GST_CAT_CAPS, "mime types differ (%s to %s)",
gst_type_find_by_id (caps1->id)->mime,
gst_type_find_by_id (caps2->id)->mime);
return NULL;
/**
* gst_caps_intersect:
- * @caps1: a capabilty
- * @caps2: a capabilty
+ * @caps1: a capability
+ * @caps2: a capability
*
* Make the intersection between two caps.
*
{
GstCaps *result = NULL, *walk = NULL;
+ /* printing the name is not useful here since caps can be chained */
+ GST_DEBUG (GST_CAT_CAPS, "intersecting caps %p and %p", caps1, caps2);
+
if (caps1 == NULL) {
GST_DEBUG (GST_CAT_CAPS, "first caps is NULL, return other caps");
return gst_caps_copy (caps2);
g_return_if_fail (GST_IS_ELEMENT (element));
- object = (GObject*)element;
+ object = (GObject *) element;
+
+ GST_DEBUG (GST_CAT_PROPERTIES,
+ "setting valist of properties starting with %s on element %s",
+ first_property_name, gst_element_get_name (element));
if (!GST_FLAG_IS_SET (element, GST_ELEMENT_USE_THREADSAFE_PROPERTIES)) {
g_object_set_valist (object, first_property_name, var_args);
* the property will be put on the async queue.
*/
void
-gst_element_set_property (GstElement *element, const gchar *property_name, const GValue *value)
+gst_element_set_property (GstElement *element, const gchar *property_name,
+ const GValue *value)
{
GParamSpec *pspec;
GObject *object;
g_return_if_fail (property_name != NULL);
g_return_if_fail (G_IS_VALUE (value));
- object = (GObject*)element;
+ object = (GObject*) element;
+ GST_DEBUG (GST_CAT_PROPERTIES, "setting property %s on element %s",
+ property_name, gst_element_get_name (element));
if (!GST_FLAG_IS_SET (element, GST_ELEMENT_USE_THREADSAFE_PROPERTIES)) {
g_object_set_property (object, property_name, value);
return;
g_object_ref (object);
- pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (object), property_name);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (object),
+ property_name);
if (!pspec)
g_warning ("%s: object class `%s' has no property named `%s'",
/* checks */
g_return_val_if_fail (src != NULL, FALSE);
- g_return_val_if_fail (GST_IS_ELEMENT(src), FALSE);
+ g_return_val_if_fail (GST_IS_ELEMENT (src), FALSE);
g_return_val_if_fail (dest != NULL, FALSE);
- g_return_val_if_fail (GST_IS_ELEMENT(dest), FALSE);
+ g_return_val_if_fail (GST_IS_ELEMENT (dest), FALSE);
GST_DEBUG (GST_CAT_ELEMENT_PADS, "trying to connect element %s to element %s",
GST_ELEMENT_NAME (src), GST_ELEMENT_NAME (dest));
- /* loop through the existing pads in the source */
srcpads = gst_element_get_pad_list (src);
destpads = gst_element_get_pad_list (dest);
if (srcpads || destpads) {
+ /* loop through the existing pads in the source, trying to find a
+ * compatible destination pad */
while (srcpads) {
srcpad = (GstPad *) GST_PAD_REALIZE (srcpads->data);
if ((GST_RPAD_DIRECTION (srcpad) == GST_PAD_SRC) &&
/* optinally clear the caps */
if (clear) {
- GST_INFO (GST_CAT_PADS, "reconnect filtered %s:%s and %s:%s, clearing caps",
+ GST_INFO (GST_CAT_PADS,
+ "start reconnect filtered %s:%s and %s:%s, clearing caps",
GST_DEBUG_PAD_NAME (realsrc), GST_DEBUG_PAD_NAME (realsink));
GST_PAD_CAPS (GST_PAD (realsrc)) = NULL;
GST_PAD_CAPS (GST_PAD (realsink)) = NULL;
}
else {
- GST_INFO (GST_CAT_PADS, "reconnect filtered %s:%s and %s:%s",
+ GST_INFO (GST_CAT_PADS, "start reconnect filtered %s:%s and %s:%s",
GST_DEBUG_PAD_NAME (realsrc), GST_DEBUG_PAD_NAME (realsink));
}