+2005-11-16 Wim Taymans <wim@fluendo.com>
+
+ * check/Makefile.am:
+ Enable more tests.
+
+ * check/elements/fakesrc.c: (GST_START_TEST):
+ Set element to NULL before disposing it.
+
2005-11-16 Andy Wingo <wingo@pobox.com>
* gst/net/Makefile.am:
# valgrind testing
# these just need valgrind fixing, period
-VALGRIND_TO_FIX = \
- gst/gstevent \
- gst-libs/controller \
- pipelines/simple_launch_lines
+VALGRIND_TO_FIX =
# these need fixing because the threads cause segfaults under valgrind
TESTS_THREADED = \
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
fail_unless (ret == GST_STATE_CHANGE_NO_PREROLL,
"error going to paused the second time");
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
# valgrind testing
# these just need valgrind fixing, period
-VALGRIND_TO_FIX = \
- gst/gstevent \
- gst-libs/controller \
- pipelines/simple_launch_lines
+VALGRIND_TO_FIX =
# these need fixing because the threads cause segfaults under valgrind
TESTS_THREADED = \
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}
fail_unless (ret == GST_STATE_CHANGE_NO_PREROLL,
"error going to paused the second time");
+ fail_unless (gst_element_set_state (src,
+ GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+
/* cleanup */
cleanup_fakesrc (src);
}