mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
tests: improve more tests
This commit is contained in:
parent
65d59232b1
commit
bb8bc237b5
2 changed files with 30 additions and 33 deletions
|
@ -84,7 +84,7 @@ GST_START_TEST (test_autoaudiosink_ghostpad_error_case)
|
|||
filter = gst_element_factory_make ("capsfilter", NULL);
|
||||
sink = gst_element_factory_make ("autoaudiosink", NULL);
|
||||
|
||||
caps = gst_caps_new_simple ("audio/x-raw-int", "width", G_TYPE_INT, 42, NULL);
|
||||
caps = gst_caps_new_simple ("audio/x-raw", "width", G_TYPE_INT, 42, NULL);
|
||||
|
||||
g_object_set (filter, "caps", caps, NULL);
|
||||
gst_caps_unref (caps);
|
||||
|
|
|
@ -395,8 +395,6 @@ GST_START_TEST (test_cropping)
|
|||
s = gst_caps_get_structure (caps, 0);
|
||||
fail_unless (s != NULL);
|
||||
|
||||
/* videotestsrc does not support this format, so ignore it */
|
||||
if (!g_str_equal (gst_structure_get_name (s), "video/x-raw-gray")) {
|
||||
GST_INFO ("testing format: %" GST_PTR_FORMAT, caps);
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (sizes_to_try); ++i) {
|
||||
|
@ -432,7 +430,6 @@ GST_START_TEST (test_cropping)
|
|||
|
||||
gst_caps_unref (in_caps);
|
||||
}
|
||||
}
|
||||
|
||||
gst_caps_unref (caps);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue