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");
}
g_mutex_unlock (check_mutex);
-
gst_element_set_state (videotestsrc, GST_STATE_READY);
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);