mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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.
This commit is contained in:
parent
b578f722f9
commit
c1ebc9caf9
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
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),
|
||||
|
|
Loading…
Reference in a new issue