From 0e08e35ec2d5ceb84a648fb690731243bc47e5ad Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 20 Jan 2006 19:01:59 +0000 Subject: [PATCH] docs/random/release: update notes Original commit message from CVS: * docs/random/release: update notes * gst/gstbin.c: (gst_bin_init): * gst/gstbus.c: (gst_bus_new): * gst/gstbus.h: * gst/gstpipeline.c: (gst_pipeline_init): use gst_bus_new(), improve logging, fix docs * win32/common/config.h: update for cvs build --- ChangeLog | 12 ++++++++++++ docs/random/release | 4 ++++ gst/gstbin.c | 4 +++- gst/gstbus.c | 12 +++++++----- gst/gstbus.h | 4 ++-- gst/gstpipeline.c | 4 +++- 6 files changed, 31 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d2348533d..b06591cdac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2006-01-20 Thomas Vander Stichele + + * docs/random/release: + update notes + * gst/gstbin.c: (gst_bin_init): + * gst/gstbus.c: (gst_bus_new): + * gst/gstbus.h: + * gst/gstpipeline.c: (gst_pipeline_init): + use gst_bus_new(), improve logging, fix docs + * win32/common/config.h: + update for cvs build + 2006-01-20 Thomas Vander Stichele * autogen.sh: diff --git a/docs/random/release b/docs/random/release index 2c04c8d5af..033e19c84e 100644 --- a/docs/random/release +++ b/docs/random/release @@ -226,9 +226,13 @@ NEW NOTES - tag tree for example for 0.6.3 : cvs tag RELEASE-0_6_3 + - bump nano number, commit - if working in the "stable" release branch, update to this tag to freeze it: cvs up -r RELEASE-0_6_3 - sync source and packages to website - add entry on website; commit additions to website + - change versions in www/src/htdocs/entities.gst + - add versions and milestones in bugzilla + diff --git a/gst/gstbin.c b/gst/gstbin.c index b3ac583deb..5e01bca8dd 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -368,8 +368,10 @@ gst_bin_init (GstBin * bin) bin->clock_dirty = FALSE; /* Set up a bus for listening to child elements */ - bus = g_object_new (gst_bus_get_type (), NULL); + bus = gst_bus_new (); bin->child_bus = bus; + GST_DEBUG_OBJECT (bin, "using bus %" GST_PTR_FORMAT " to listen to children", + bus); gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bin_bus_handler, bin); } diff --git a/gst/gstbus.c b/gst/gstbus.c index e0376d0590..73d65b94e0 100644 --- a/gst/gstbus.c +++ b/gst/gstbus.c @@ -39,8 +39,8 @@ * convert all bus messages into signal emissions. * * A message is posted on the bus with the gst_bus_post() method. With the - * gst_bus_peek() and gst_bus_pop() methods one can look at or retrieve a previously - * posted message. + * gst_bus_peek() and gst_bus_pop() methods one can look at or retrieve a + * previously posted message. * * The bus can be polled with the gst_bus_poll() method. This methods blocks * up to the specified timeout value until one of the specified messages types @@ -279,6 +279,7 @@ gst_bus_new (void) GstBus *result; result = g_object_new (gst_bus_get_type (), NULL); + GST_DEBUG_OBJECT (result, "created new bus"); return result; } @@ -905,7 +906,7 @@ gst_bus_sync_signal_handler (GstBus * bus, GstMessage * message, gpointer data) /** * gst_bus_add_signal_watch_full: - * @bus: a #GstBus on which you want to recieve the "message" signal + * @bus: a #GstBus on which you want to receive the "message" signal * @priority: The priority of the watch. * * Adds a bus signal watch to the default main context with the given priority. @@ -944,9 +945,10 @@ done: /** * gst_bus_add_signal_watch: - * @bus: a #GstBus on which you want to recieve the "message" signal + * @bus: a #GstBus on which you want to receive the "message" signal * - * Adds a bus signal watch to the default main context with the default priority. + * Adds a bus signal watch to the default main context with the default + * priority. * After calling this statement, the bus will emit the message signal for each * message posted on the bus. * diff --git a/gst/gstbus.h b/gst/gstbus.h index 76252cef21..8cfff77ce9 100644 --- a/gst/gstbus.h +++ b/gst/gstbus.h @@ -90,8 +90,8 @@ typedef GstBusSyncReply (*GstBusSyncHandler) (GstBus * bus, GstMessage * messag * @message: the #GstMessage * @data: user data that has been given, when registering the handler * - * Specifies the type of function passed to #gst_bus_add_watch() or - * #gst_bus_add_watch_full(), which is called from the mainloop when a message + * Specifies the type of function passed to gst_bus_add_watch() or + * gst_bus_add_watch_full(), which is called from the mainloop when a message * is available on the bus. * * The message passed to the function will be unreffed after execution of this diff --git a/gst/gstpipeline.c b/gst/gstpipeline.c index 69b6eec3a0..306e758a75 100644 --- a/gst/gstpipeline.c +++ b/gst/gstpipeline.c @@ -163,8 +163,10 @@ gst_pipeline_init (GTypeInstance * instance, gpointer g_class) pipeline->delay = DEFAULT_DELAY; - bus = g_object_new (gst_bus_get_type (), NULL); + bus = gst_bus_new (); gst_element_set_bus (GST_ELEMENT_CAST (pipeline), bus); + GST_DEBUG_OBJECT (pipeline, "set bus %" GST_PTR_FORMAT " on pipeline", bus); + gst_object_unref (bus); }