From: <tho...@fr...> - 2005-10-19 20:48:37
|
CVS Root: /cvs/gstreamer Module: gst-plugins-good Changes by: thomasvs Date: Wed Oct 19 2005 13:48:36 PDT Log message: use ELEMENT messages instead Modified files: . : ChangeLog check/elements : level.c gst/level : gstlevel.c level-example.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.1905&r2=1.1906 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/check/elements/level.c.diff?r1=1.5&r2=1.6 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/level/gstlevel.c.diff?r1=1.51&r2=1.52 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/level/level-example.c.diff?r1=1.4&r2=1.5 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v retrieving revision 1.1905 retrieving revision 1.1906 diff -u -d -r1.1905 -r1.1906 --- ChangeLog 19 Oct 2005 15:57:03 -0000 1.1905 +++ ChangeLog 19 Oct 2005 20:48:23 -0000 1.1906 @@ -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 <wi...@fl...> * ext/dv/gstdvdemux.c: (gst_dvdemux_get_src_query_types), Index: level.c RCS file: /cvs/gstreamer/gst-plugins-good/check/elements/level.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- level.c 24 Sep 2005 12:10:02 -0000 1.5 +++ level.c 19 Oct 2005 20:48:24 -0000 1.6 @@ -129,11 +129,11 @@ 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), Index: gstlevel.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/level/gstlevel.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- gstlevel.c 24 Sep 2005 12:10:02 -0000 1.51 +++ gstlevel.c 19 Oct 2005 20:48:24 -0000 1.52 @@ -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_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 Index: level-example.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/level/level-example.c,v retrieving revision 1.4 diff -u -d -r1.4 -r1.5 --- level-example.c 29 Sep 2005 13:08:41 -0000 1.4 +++ level-example.c 19 Oct 2005 20:48:24 -0000 1.5 @@ -7,7 +7,7 @@ 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); |