mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
basetransform: take size once
This commit is contained in:
parent
c686053aac
commit
3ce0c64b45
1 changed files with 2 additions and 1 deletions
|
@ -472,9 +472,10 @@ gst_base_transform_transform_caps (GstBaseTransform * trans,
|
||||||
temp = gst_caps_make_writable (temp);
|
temp = gst_caps_make_writable (temp);
|
||||||
gst_caps_append (ret, temp);
|
gst_caps_append (ret, temp);
|
||||||
} else {
|
} else {
|
||||||
|
gint n = gst_caps_get_size (caps);
|
||||||
/* we send caps with just one structure to the transform
|
/* we send caps with just one structure to the transform
|
||||||
* function as this is easier for the element */
|
* function as this is easier for the element */
|
||||||
for (i = 0; i < gst_caps_get_size (caps); i++) {
|
for (i = 0; i < n; i++) {
|
||||||
GstCaps *nth;
|
GstCaps *nth;
|
||||||
|
|
||||||
nth = gst_caps_copy_nth (caps, i);
|
nth = gst_caps_copy_nth (caps, i);
|
||||||
|
|
Loading…
Reference in a new issue