[gst-cvs] gst-plugins-good: deinterlace: Fix unit test that checks caps handling
Sebastian Dröge
slomo at kemper.freedesktop.org
Thu Apr 29 10:36:26 PDT 2010
Module: gst-plugins-good
Branch: master
Commit: 88451daa037451accafbe159552eee81c45f5e3f
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=88451daa037451accafbe159552eee81c45f5e3f
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Fri Apr 23 14:35:44 2010 +0200
deinterlace: Fix unit test that checks caps handling
deinterlace now always adds the interlaced field to the output caps,
if it wasn't present in the input caps the output caps will still
contain interlaced=false.
---
tests/check/elements/deinterlace.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/tests/check/elements/deinterlace.c b/tests/check/elements/deinterlace.c
index 2f7b298..6606a5f 100644
--- a/tests/check/elements/deinterlace.c
+++ b/tests/check/elements/deinterlace.c
@@ -256,6 +256,19 @@ deinterlace_set_caps_and_check (GstCaps * input, gboolean must_deinterlace)
if (must_deinterlace) {
fail_if (gst_caps_is_interlaced (othercaps));
} else {
+ GstStructure *s;
+
+ fail_unless (gst_caps_is_interlaced (input) ==
+ gst_caps_is_interlaced (othercaps));
+
+ othercaps = gst_caps_make_writable (othercaps);
+ s = gst_caps_get_structure (othercaps, 0);
+ gst_structure_remove_field (s, "interlaced");
+
+ input = gst_caps_make_writable (input);
+ s = gst_caps_get_structure (input, 0);
+ gst_structure_remove_field (s, "interlaced");
+
fail_unless (gst_caps_is_equal (input, othercaps));
}
gst_caps_unref (input);
More information about the Gstreamer-commits
mailing list