mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
glfilter: prepend intersection to src caps
Prefer to stay in the same memory space if possible. Also it let a chance to do passthrough. See https://bugzilla.gnome.org/show_bug.cgi?id=732178
This commit is contained in:
parent
6f45d00a9b
commit
045aa4ee7e
1 changed files with 6 additions and 0 deletions
|
@ -757,6 +757,12 @@ gst_gl_filter_transform_caps (GstBaseTransform * bt,
|
||||||
result = tmp;
|
result = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if output still intersects input then prefer the intersection */
|
||||||
|
if (direction == GST_PAD_SINK) {
|
||||||
|
tmp = gst_caps_intersect_full (result, caps, GST_CAPS_INTERSECT_FIRST);
|
||||||
|
result = gst_caps_merge (tmp, result);
|
||||||
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (bt, "returning caps: %" GST_PTR_FORMAT, result);
|
GST_DEBUG_OBJECT (bt, "returning caps: %" GST_PTR_FORMAT, result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue