tests: videotestsrc change the pattern property for the tests

This commit is contained in:
Thijs Vermeir 2010-09-10 10:40:52 +02:00
parent 18b282e49f
commit 78055cc852

View file

@ -93,10 +93,11 @@ GST_START_TEST (test_all_patterns)
fail_unless (G_IS_PARAM_SPEC_ENUM (property));
values = G_ENUM_CLASS (g_type_class_ref (property->value_type))->values;
while (values[j].value_name) {
GST_DEBUG_OBJECT (videotestsrc, "testing pattern %s", values[j].value_name);
g_object_set (videotestsrc, "pattern", j, NULL);
fail_unless (gst_element_set_state (videotestsrc,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
@ -108,7 +109,6 @@ GST_START_TEST (test_all_patterns)
}
g_mutex_unlock (check_mutex);
gst_element_set_state (videotestsrc, GST_STATE_READY);
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);