mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
glutils: remove trivial helper function
gst_gl_caps_replace_all_caps_features() is only used in two places and can be trivially reproduced.
This commit is contained in:
parent
e8ec52b8ef
commit
b4301e2235
1 changed files with 9 additions and 3 deletions
|
@ -220,15 +220,21 @@ static GstCaps *
|
||||||
_update_caps (GstVideoAggregator * vagg, GstCaps * caps, GstCaps * filter)
|
_update_caps (GstVideoAggregator * vagg, GstCaps * caps, GstCaps * filter)
|
||||||
{
|
{
|
||||||
GstCaps *tmp;
|
GstCaps *tmp;
|
||||||
|
guint i, n;
|
||||||
|
|
||||||
if (filter) {
|
if (filter) {
|
||||||
tmp = gst_caps_intersect (caps, filter);
|
tmp = gst_caps_intersect (caps, filter);
|
||||||
} else {
|
} else {
|
||||||
tmp = caps;
|
tmp = gst_caps_copy (caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
return gst_gl_caps_replace_all_caps_features (tmp,
|
n = gst_caps_get_size (tmp);
|
||||||
GST_CAPS_FEATURE_MEMORY_GL_MEMORY);
|
for (i = 0; i < n; i++) {
|
||||||
|
gst_caps_set_features (tmp, i,
|
||||||
|
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_GL_MEMORY));
|
||||||
|
}
|
||||||
|
|
||||||
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
|
|
Loading…
Reference in a new issue