basetransform: optimize default acceptcaps implementation
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 19 Jun 2013 10:19:02 +0000 (12:19 +0200)
committerSjoerd Simons <sjoerd@luon.net>
Wed, 19 Jun 2013 13:11:57 +0000 (15:11 +0200)
commit12a72d2b086d3052afa41774db62821039bafcad
tree39b221973fed270d6daa082cca92a35b6fc9f348
parent0d57bd3198225e6ab713ba1e4e24c45b7bd8c502
basetransform: optimize default acceptcaps implementation

Pass the fixed caps we're asked to accept as a filter for the caps
query, so we don't get a fully-expanded set of caps back (which we don't
need and can take a lot of time for intersection).

This reduces the time for camerabin to produce a second frame on a
logitech C910 camera from around 52 seconds to a bit less then 16
seconds on my system.

https://bugzilla.gnome.org/show_bug.cgi?id=702632
libs/gst/base/gstbasetransform.c