+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),
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),
* <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>"level"</classname>:
* after each interval of time given by the
* <link linkend="GstLevel--interval">interval property</link>.
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
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);
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),