mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
use ELEMENT messages instead
Original commit message from CVS: use ELEMENT messages instead
This commit is contained in:
parent
3ab46f21f0
commit
587a7add24
5 changed files with 14 additions and 7 deletions
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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>"level"</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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue