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):
Fix for new bus API.
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),
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),