From 587a7add24025601ce2cf9e6b6cdff5942540ccf Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 19 Oct 2005 20:48:24 +0000 Subject: use ELEMENT messages instead Original commit message from CVS: use ELEMENT messages instead --- gst/level/gstlevel.c | 4 ++-- gst/level/level-example.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gst/level') diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index 88d56812..9a15caf4 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -26,7 +26,7 @@ * * Level analyses incoming audio buffers and, if the * message property is #TRUE, - * generates an application message named + * generates an element message named * "level": * after each interval of time given by the * interval property. @@ -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 diff --git a/gst/level/level-example.c b/gst/level/level-example.c index ed647de2..3333a8c8 100644 --- a/gst/level/level-example.c +++ b/gst/level/level-example.c @@ -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); -- cgit