mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
tests: videotestsrc change the pattern property for the tests
This commit is contained in:
parent
18b282e49f
commit
78055cc852
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue