Commit 3ce0c64b authored by Stefan Kost's avatar Stefan Kost
Browse files

basetransform: take size once

parent c686053a
......@@ -472,9 +472,10 @@ gst_base_transform_transform_caps (GstBaseTransform * trans,
temp = gst_caps_make_writable (temp);
gst_caps_append (ret, temp);
} else {
gint n = gst_caps_get_size (caps);
/* we send caps with just one structure to the transform
* 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;
nth = gst_caps_copy_nth (caps, i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment