summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2009-01-23 20:36:27 +0100
committerThijs Vermeir <thijsvermeir@gmail.com>2009-01-23 20:36:27 +0100
commit3733a2ef8c160541238e281f13382ce5481055a1 (patch)
treec9b3a1155aad305d0366e6ff93c27b0b337dba58 /tests
parentc1cb1e0c5bf6b3b9d71cf68f7cb269a568ac3255 (diff)
skip video/x-raw-gray in videocrop unit test
A recent commit added video/x-raw-gray support to videocrop. However this lets the videocrop unit test fail. Because videotestsrc can't generate this format.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/videocrop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check/elements/videocrop.c b/tests/check/elements/videocrop.c
index f26bf163..dd5bbdce 100644
--- a/tests/check/elements/videocrop.c
+++ b/tests/check/elements/videocrop.c
@@ -348,6 +348,11 @@ GST_START_TEST (test_crop_to_1x1)
s = gst_caps_get_structure (caps, 0);
fail_unless (s != NULL);
+ if (g_strcmp0 (gst_structure_get_name (s), "video/x-raw-gray") == 0) {
+ /* videotestsrc does not support this format */
+ continue;
+ }
+
GST_INFO ("testing format: %" GST_PTR_FORMAT, caps);
gst_structure_set (s, "width", G_TYPE_INT, 160,
@@ -403,6 +408,11 @@ GST_START_TEST (test_cropping)
s = gst_caps_get_structure (caps, 0);
fail_unless (s != NULL);
+ if (g_strcmp0 (gst_structure_get_name (s), "video/x-raw-gray") == 0) {
+ /* videotestsrc does not support this format */
+ continue;
+ }
+
GST_INFO ("testing format: %" GST_PTR_FORMAT, caps);
for (i = 0; i < G_N_ELEMENTS (sizes_to_try); ++i) {