ret = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
}
+ GST_LOG_OBJECT (pad, "srcpad accepted caps: %" GST_PTR_FORMAT, ret);
+
+ if (gst_caps_is_empty (ret))
+ goto done;
+
tmp = gst_pad_peer_get_caps (pad);
+
+ GST_LOG_OBJECT (pad, "peerpad accepted caps: %" GST_PTR_FORMAT, tmp);
if (tmp) {
GstCaps *intersection;
ret = intersection;
}
+ GST_LOG_OBJECT (pad, "intersection: %" GST_PTR_FORMAT, tmp);
+
+ if (gst_caps_is_empty (ret))
+ goto done;
+
if (self->height && self->width) {
guint i, n;
}
tmp = gst_pad_peer_get_caps (self->mask_sinkpad);
+
+ GST_LOG_OBJECT (pad, "mask accepted caps: %" GST_PTR_FORMAT, tmp);
if (tmp) {
GstCaps *intersection, *tmp2;
guint i, n;
gst_caps_unref (ret);
ret = intersection;
}
+done:
gst_object_unref (self);
ret = gst_caps_copy (gst_pad_get_pad_template_caps (self->video_sinkpad));
}
+ GST_LOG_OBJECT (pad, "video sink accepted caps: %" GST_PTR_FORMAT, ret);
+
+ if (gst_caps_is_empty (ret))
+ goto done;
+
tmp = gst_pad_peer_get_caps (self->srcpad);
+ GST_LOG_OBJECT (pad, "srcpad accepted caps: %" GST_PTR_FORMAT, ret);
+
if (tmp) {
GstCaps *intersection;
ret = intersection;
}
+ GST_LOG_OBJECT (pad, "intersection: %" GST_PTR_FORMAT, ret);
+
+ if (gst_caps_is_empty (ret))
+ goto done;
+
n = gst_caps_get_size (ret);
tmp = gst_caps_new_empty ();
for (i = 0; i < n; i++) {
gst_caps_append (ret, tmp);
tmp = gst_pad_peer_get_caps (pad);
+ GST_LOG_OBJECT (pad, "peer accepted caps: %" GST_PTR_FORMAT, tmp);
+
if (tmp) {
GstCaps *intersection;
ret = intersection;
}
+done:
gst_object_unref (self);
GST_LOG_OBJECT (pad, "Returning caps: %" GST_PTR_FORMAT, ret);
ret = gst_caps_copy (gst_pad_get_pad_template_caps (self->video_sinkpad));
}
+ GST_LOG_OBJECT (pad, "video sink accepted caps: %" GST_PTR_FORMAT, ret);
+
+ if (gst_caps_is_empty (ret))
+ goto done;
+
tmp = gst_pad_peer_get_caps (pad);
+ GST_LOG_OBJECT (pad, "peer accepted caps: %" GST_PTR_FORMAT, ret);
if (tmp) {
GstCaps *intersection;
ret = intersection;
}
+ GST_LOG_OBJECT (pad, "intersection: %" GST_PTR_FORMAT, ret);
+
+ if (gst_caps_is_empty (ret))
+ goto done;
+
if (self->height && self->width) {
guint i, n;
}
tmp = gst_pad_peer_get_caps (self->mask_sinkpad);
+ GST_LOG_OBJECT (pad, "mask sink accepted caps: %" GST_PTR_FORMAT, ret);
if (tmp) {
GstCaps *intersection, *tmp2;
guint i, n;
ret = intersection;
}
+done:
+
gst_object_unref (self);
GST_LOG_OBJECT (pad, "Returning caps: %" GST_PTR_FORMAT, ret);