gst/alpha/gstalphacolor.c: Double-check that RGB input caps are really RGBA caps...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 25 Apr 2007 15:31:53 +0000 (15:31 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 25 Apr 2007 15:31:53 +0000 (15:31 +0000)
commite53a24511b26f3f7dde05ba073d02ca49cb2b190
treef807e1c4297c46a320b57b6c2e3af574c0a6afb3
parent3f55b6e91260b55a87062fbb60e340db293b753b
gst/alpha/gstalphacolor.c: Double-check that RGB input caps are really RGBA caps (apparently the core doesn't always ...

Original commit message from CVS:
* gst/alpha/gstalphacolor.c: (gst_alpha_color_base_init),
(gst_alpha_color_transform_caps), (gst_alpha_color_set_caps):
Double-check that RGB input caps are really RGBA caps (apparently
the core doesn't always catch it if those caps aren't a subset of
our template caps, also see #421543). Fixes #429319 in a way.
Also, don't leak the pad template in the transform_caps function.
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/alphacolor.c: (setup_alphacolor),
(cleanup_alphacolor), (create_caps_rgb24), (create_caps_rgba32),
(create_buffer_rgb24_3x4), (create_buffer_rgba32_3x4),
(GST_START_TEST), (alphacolor_suite):
Add some basic unit tests for alphacolor.
ChangeLog
gst/alpha/gstalphacolor.c
tests/check/Makefile.am
tests/check/elements/.gitignore
tests/check/elements/alphacolor.c [new file with mode: 0644]