basetransform: Fix caps equality check
authorSebastian Dröge <sebastian@centricular.com>
Thu, 20 Nov 2014 20:33:59 +0000 (21:33 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 20 Nov 2014 20:37:24 +0000 (21:37 +0100)
commita7f3571d0230229a9f46bc09976631d520684d46
tree6bf026bfd3876178eea1d57fb8fadc8221de92ad
parentc9264100dbcd787ac58b302c12c628dc7392132f
basetransform: Fix caps equality check

Instead of checking if our outcaps are equivalent to the previous incaps, and
if that is the case not setting any caps on the pad... compare against our
previous outcaps because that's what we care about.

Fixes some cases where the outcaps became equivalent to the previous incaps,
but the previous outcaps were different and we were then sending buffers
downstream that were corresponding to the caps we forgot to set on the pad.
Resulting in crashes or image corruption.
libs/gst/base/gstbasetransform.c