Commit c1ebc9ca authored by Wim Taymans's avatar Wim Taymans
Browse files

check/elements/level.c: Fix for bus API change.

Original commit message from CVS:
* check/elements/level.c: (GST_START_TEST):
Fix for bus API change.
parent b578f722
2005-09-19 Wim Taymans <wim@fluendo.com>
* check/elements/level.c: (GST_START_TEST):
Fix for bus API change.
2005-09-19 Wim Taymans <wim@fluendo.com>
* gst/level/level-example.c: (main):
......
......@@ -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),
......
......@@ -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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment