Commit e8c69d59 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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.
parent 5a3d0872
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);
......
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