gst/gstpipeline.c: When we create a pipeline bus, initially create it in flushing...
authorMichael Smith <msmith@xiph.org>
Wed, 5 Apr 2006 15:46:00 +0000 (15:46 +0000)
committerMichael Smith <msmith@xiph.org>
Wed, 5 Apr 2006 15:46:00 +0000 (15:46 +0000)
Original commit message from CVS:
* gst/gstpipeline.c: (gst_pipeline_init):
When we create a pipeline bus, initially create it in flushing mode.
Fixes leaks in at least one test, and makes a new pipeline work the
same as one that has gone to READY and then back to NULL.

* gst/gstelement.c:
Typo fix in docs.

ChangeLog
gst/gstelement.c
gst/gstpipeline.c

index 5122f08..a7e43e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2006-04-05  Michael Smith  <msmith@fluendo.com>
 
+       * gst/gstpipeline.c: (gst_pipeline_init):
+         When we create a pipeline bus, initially create it in flushing mode.
+         Fixes leaks in at least one test, and makes a new pipeline work the
+         same as one that has gone to READY and then back to NULL.
+
+       * gst/gstelement.c:
+         Typo fix in docs.
+
+2006-04-05  Michael Smith  <msmith@fluendo.com>
+
        * tests/check/gst/gstghostpad.c: (GST_START_TEST):
          Unref a pad we reffed.
        * tests/check/gst/gstutils.c: (GST_START_TEST):
index 81fe0c9..24f251a 100644 (file)
@@ -472,7 +472,7 @@ gst_element_set_base_time (GstElement * element, GstClockTime time)
  *
  * Returns the base time of the element. The base time is the
  * absolute time of the clock when this element was last put to
- * PLAYING. Substracting the base time from the clock time gives
+ * PLAYING. Subtracting the base time from the clock time gives
  * the stream time of the element.
  *
  * Returns: the base time of the element.
index 185fc02..aa7c479 100644 (file)
@@ -248,6 +248,10 @@ gst_pipeline_init (GTypeInstance * instance, gpointer g_class)
 
   /* create and set a default bus */
   bus = gst_bus_new ();
+  /* Start our bus in flushing if appropriate */
+  if (pipeline->priv->auto_flush_bus)
+    gst_bus_set_flushing (bus, TRUE);
+
   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);