mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
tests/check/libs/mixer.c: Add a few simple checks for the new message types.
Original commit message from CVS: * tests/check/libs/mixer.c: Add a few simple checks for the new message types.
This commit is contained in:
parent
5a3d087279
commit
e8c69d59ca
2 changed files with 24 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-03-03 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* tests/check/libs/mixer.c:
|
||||
Add a few simple checks for the new message types.
|
||||
|
||||
2008-03-03 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/libs/gst-plugins-base-libs-sections.txt:
|
||||
|
|
|
@ -173,7 +173,7 @@ GST_START_TEST (test_messages)
|
|||
gst_message_unref (message);
|
||||
g_free (vols_out);
|
||||
|
||||
/* Test options-changed */
|
||||
/* Test option-changed */
|
||||
gst_mixer_option_changed (GST_MIXER (test_element), mopts, "TESTING");
|
||||
message = gst_bus_poll (bus, GST_MESSAGE_ELEMENT, GST_CLOCK_TIME_NONE);
|
||||
fail_if (message == NULL);
|
||||
|
@ -185,6 +185,24 @@ GST_START_TEST (test_messages)
|
|||
fail_unless (g_str_equal (val, "TESTING"));
|
||||
gst_message_unref (message);
|
||||
|
||||
/* Test options-list-changed */
|
||||
gst_mixer_options_list_changed (GST_MIXER (test_element), mopts);
|
||||
message = gst_bus_poll (bus, GST_MESSAGE_ELEMENT, GST_CLOCK_TIME_NONE);
|
||||
fail_if (message == NULL);
|
||||
fail_unless (gst_mixer_message_get_type (message) ==
|
||||
GST_MIXER_MESSAGE_OPTIONS_LIST_CHANGED);
|
||||
gst_mixer_message_parse_options_list_changed (message, &o);
|
||||
fail_unless (o == mopts);
|
||||
gst_message_unref (message);
|
||||
|
||||
/* Test mixer-changed */
|
||||
gst_mixer_mixer_changed (GST_MIXER (test_element));
|
||||
message = gst_bus_poll (bus, GST_MESSAGE_ELEMENT, GST_CLOCK_TIME_NONE);
|
||||
fail_if (message == NULL);
|
||||
fail_unless (gst_mixer_message_get_type (message) ==
|
||||
GST_MIXER_MESSAGE_MIXER_CHANGED);
|
||||
gst_message_unref (message);
|
||||
|
||||
gst_object_unref (mtrack);
|
||||
gst_object_unref (mopts);
|
||||
gst_object_unref (bus);
|
||||
|
|
Loading…
Reference in a new issue