use ELEMENT messages instead

Original commit message from CVS:
use ELEMENT messages instead
This commit is contained in:
Thomas Vander Stichele 2005-10-19 20:48:24 +00:00
parent 3ab46f21f0
commit 587a7add24
5 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2005-10-19 Thomas Vander Stichele <thomas at apestaart dot org>
* check/elements/level.c: (GST_START_TEST):
* gst/level/gstlevel.c: (gst_level_message_new):
* gst/level/level-example.c: (message_handler):
use ELEMENT messages instead
2005-10-19 Wim Taymans <wim@fluendo.com>
* ext/dv/gstdvdemux.c: (gst_dvdemux_get_src_query_types),

View file

@ -129,11 +129,11 @@ GST_START_TEST (test_int16)
fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL);
fail_unless (inbuffer == outbuffer);
message = gst_bus_poll (bus, GST_MESSAGE_APPLICATION, -1);
message = gst_bus_poll (bus, GST_MESSAGE_ELEMENT, -1);
fail_unless (message != NULL);
fail_unless (GST_MESSAGE_SRC (message) == GST_OBJECT (level));
fail_unless (GST_MESSAGE_TYPE (message) == GST_MESSAGE_APPLICATION);
fail_unless (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ELEMENT);
structure = gst_message_get_structure (message);
fail_if (structure == NULL);
fail_unless_equals_string ((char *) gst_structure_get_name (structure),

View file

@ -26,7 +26,7 @@
* <para>
* Level analyses incoming audio buffers and, if the
* <link linkend="GstLevel--message">message property</link> is #TRUE,
* generates an application message named
* generates an element message named
* <classname>&quot;level&quot;</classname>:
* after each interval of time given by the
* <link linkend="GstLevel--interval">interval property</link>.
@ -366,7 +366,7 @@ gst_level_message_new (GstLevel * l, GstClockTime endtime)
gst_structure_set_value (s, "peak", &v);
gst_structure_set_value (s, "decay", &v);
return gst_message_new_application (GST_OBJECT (l), s);
return gst_message_new_element (GST_OBJECT (l), s);
}
static void

View file

@ -7,7 +7,7 @@ gboolean
message_handler (GstBus * bus, GstMessage * message, gpointer data)
{
if (message->type == GST_MESSAGE_APPLICATION) {
if (message->type == GST_MESSAGE_ELEMENT) {
const GstStructure *s = gst_message_get_structure (message);
const gchar *name = gst_structure_get_name (s);

View file

@ -129,11 +129,11 @@ GST_START_TEST (test_int16)
fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL);
fail_unless (inbuffer == outbuffer);
message = gst_bus_poll (bus, GST_MESSAGE_APPLICATION, -1);
message = gst_bus_poll (bus, GST_MESSAGE_ELEMENT, -1);
fail_unless (message != NULL);
fail_unless (GST_MESSAGE_SRC (message) == GST_OBJECT (level));
fail_unless (GST_MESSAGE_TYPE (message) == GST_MESSAGE_APPLICATION);
fail_unless (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ELEMENT);
structure = gst_message_get_structure (message);
fail_if (structure == NULL);
fail_unless_equals_string ((char *) gst_structure_get_name (structure),