goto no_transform;
/* check if the out caps is a subset of the othercaps */
- if (!gst_caps_is_subset (out, othercaps))
+ if (!gst_caps_can_intersect (out, othercaps))
goto no_subset;
if (othercaps)
/* see if the target caps are a superset of the source caps, in this
* case we can try to perform passthrough */
- if (gst_caps_is_subset (caps, othercaps)) {
+ if (gst_caps_can_intersect (othercaps, caps)) {
GST_DEBUG_OBJECT (trans, "try passthrough with %" GST_PTR_FORMAT, caps);
if (otherpeer) {
/* try passthrough. we know it's fixed, because caps is fixed */
GST_DEBUG_OBJECT (trans, "allowed caps %" GST_PTR_FORMAT, allowed);
/* intersect with the requested format */
- ret = gst_caps_is_subset (caps, allowed);
+ ret = gst_caps_can_intersect (allowed, caps);
gst_caps_unref (allowed);
if (!ret)