summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-06-25 07:57:26 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-06-25 07:57:26 +0000
commitb2c97f7bc68004f0d7451f3cd18b01f128741a8f (patch)
tree7a50ff4d08686c8baa36da98e51d1c60d3fe1af4 /tests
parent000fa87cdfb8145345a0ffcb2efca46baa056ad3 (diff)
tests/check/pipelines/wavpack.c: Remove workaround for a bug in identity that is fixed in 0.10.20.
Original commit message from CVS: * tests/check/pipelines/wavpack.c: (bus_handler): Remove workaround for a bug in identity that is fixed in 0.10.20.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/pipelines/wavpack.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/check/pipelines/wavpack.c b/tests/check/pipelines/wavpack.c
index deaec39b..f9599fe1 100644
--- a/tests/check/pipelines/wavpack.c
+++ b/tests/check/pipelines/wavpack.c
@@ -32,6 +32,7 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
case GST_MESSAGE_WARNING:
case GST_MESSAGE_ERROR:{
GError *gerror;
+
gchar *debug;
gst_message_parse_error (message, &gerror, &debug);
@@ -45,17 +46,8 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
case GST_MESSAGE_ELEMENT:
{
const GstStructure *s = gst_message_get_structure (message);
- const gchar *name = gst_structure_get_name (s);
- /* FIXME: identity bug http://bugzilla.gnome.org/show_bug.cgi?id=526042 */
- if (strcmp (name, "imperfect-timestamp") == 0
- || strcmp (name, "imperfect-offset") == 0) {
- const GValue *cur_offset = gst_structure_get_value (s, "cur-offset");
-
- fail_unless (G_VALUE_HOLDS_UINT64 (cur_offset));
- if (g_value_get_uint64 (cur_offset) == 0)
- break;
- }
+ const gchar *name = gst_structure_get_name (s);
fail_unless (strcmp (name, "imperfect-timestamp") != 0);
fail_unless (strcmp (name, "imperfect-offset") != 0);
@@ -98,11 +90,13 @@ fakesink_handoff (GstElement * object, GstBuffer * buffer, GstPad * pad,
GST_START_TEST (test_encode_decode)
{
GstElement *pipeline;
+
GstElement *audiotestsrc, *identity1, *wavpackenc, *identity2, *wavpackdec,
*identity3, *fakesink;
GstAdapter *srcadapter, *sinkadapter;
GstBus *bus;
+
GMainLoop *loop;
GstBuffer *in, *out;
@@ -198,6 +192,7 @@ Suite *
wavpack_suite (void)
{
Suite *s = suite_create ("Wavpack");
+
TCase *tc_chain = tcase_create ("linear");
/* time out after 60s, not the default 3 */
@@ -215,6 +210,7 @@ main (int argc, char **argv)
int nf;
Suite *s = wavpack_suite ();
+
SRunner *sr = srunner_create (s);
gst_check_init (&argc, &argv);