diff --git a/ChangeLog b/ChangeLog index 58bfabd4ab..a8e1272f02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-19 Wim Taymans + + * check/elements/level.c: (GST_START_TEST): + Fix for bus API change. + 2005-09-19 Wim Taymans * gst/level/level-example.c: (main): diff --git a/check/elements/level.c b/check/elements/level.c index d2b9ed3e7d..79fa85386b 100644 --- a/check/elements/level.c +++ b/check/elements/level.c @@ -128,10 +128,11 @@ GST_START_TEST (test_int16) fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL); fail_unless (inbuffer == outbuffer); - fail_unless_equals_int (gst_bus_poll (bus, GST_MESSAGE_APPLICATION, -1), - GST_MESSAGE_APPLICATION); - message = gst_bus_pop (bus); + message = gst_bus_poll (bus, GST_MESSAGE_APPLICATION, -1); + + fail_unless (message != NULL); fail_unless (GST_MESSAGE_SRC (message) == GST_OBJECT (level)); + fail_unless (GST_MESSAGE_TYPE (message) == GST_MESSAGE_APPLICATION); structure = gst_message_get_structure (message); fail_if (structure == NULL); fail_unless_equals_string ((char *) gst_structure_get_name (structure), diff --git a/tests/check/elements/level.c b/tests/check/elements/level.c index d2b9ed3e7d..79fa85386b 100644 --- a/tests/check/elements/level.c +++ b/tests/check/elements/level.c @@ -128,10 +128,11 @@ GST_START_TEST (test_int16) fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL); fail_unless (inbuffer == outbuffer); - fail_unless_equals_int (gst_bus_poll (bus, GST_MESSAGE_APPLICATION, -1), - GST_MESSAGE_APPLICATION); - message = gst_bus_pop (bus); + message = gst_bus_poll (bus, GST_MESSAGE_APPLICATION, -1); + + fail_unless (message != NULL); fail_unless (GST_MESSAGE_SRC (message) == GST_OBJECT (level)); + fail_unless (GST_MESSAGE_TYPE (message) == GST_MESSAGE_APPLICATION); structure = gst_message_get_structure (message); fail_if (structure == NULL); fail_unless_equals_string ((char *) gst_structure_get_name (structure),