mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gst/gstpipeline.c: When we create a pipeline bus, initially create it in flushing mode.
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.
This commit is contained in:
parent
763b2d3278
commit
96d945bc58
3 changed files with 15 additions and 1 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
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>
|
2006-04-05 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* tests/check/gst/gstghostpad.c: (GST_START_TEST):
|
* tests/check/gst/gstghostpad.c: (GST_START_TEST):
|
||||||
|
|
|
@ -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
|
* Returns the base time of the element. The base time is the
|
||||||
* absolute time of the clock when this element was last put to
|
* 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.
|
* the stream time of the element.
|
||||||
*
|
*
|
||||||
* Returns: the base time of the element.
|
* Returns: the base time of the element.
|
||||||
|
|
|
@ -248,6 +248,10 @@ gst_pipeline_init (GTypeInstance * instance, gpointer g_class)
|
||||||
|
|
||||||
/* create and set a default bus */
|
/* create and set a default bus */
|
||||||
bus = gst_bus_new ();
|
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_element_set_bus (GST_ELEMENT_CAST (pipeline), bus);
|
||||||
GST_DEBUG_OBJECT (pipeline, "set bus %" GST_PTR_FORMAT " on pipeline", bus);
|
GST_DEBUG_OBJECT (pipeline, "set bus %" GST_PTR_FORMAT " on pipeline", bus);
|
||||||
gst_object_unref (bus);
|
gst_object_unref (bus);
|
||||||
|
|
Loading…
Reference in a new issue