mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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.
This commit is contained in:
parent
c1cb1e0c5b
commit
3733a2ef8c
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue