audioconvert: Optimize transform_caps()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 May 2011 11:13:42 +0000 (13:13 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 May 2011 11:13:42 +0000 (13:13 +0200)
commitd590bce5f7d4a1a24aa61692613471da70d4ca3f
tree6715e2327b4b2cba90f75e507694bc24b66c1fd6
parent992e01eb63fa8d1bfc9f218cdea9c0eccbb02888
audioconvert: Optimize transform_caps()

If the second and next caps structures are a subset of the already existing
transformed caps we can safely skip them because we would transform them to
the same caps again.

This makes gst_pad_get_caps() on an audiotestsrc ! audioconvert !
audioconvert ! audioconvert ! fakesink pipeline about 1.7 times faster.
gst/audioconvert/gstaudioconvert.c