From 6beb496878efc627ab0e9ebddbccd3442a06313b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 29 May 2009 13:03:15 +0200 Subject: docs: update element an pipeline docs --- gst/gstelement.c | 19 +++++++++++++++---- gst/gstpipeline.c | 4 ++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index c326992899..982b56dfec 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -73,7 +73,7 @@ * toplevel #GstPipeline so the clock functions are only to be used in very * specific situations. * - * Last reviewed on 2009-05-21 (0.10.24) + * Last reviewed on 2009-05-29 (0.10.24) */ #include "gst_private.h" @@ -535,7 +535,16 @@ gst_element_get_base_time (GstElement * element) * @element: a #GstElement. * @time: the base time to set. * - * Set the start time of an element. See gst_element_get_start_time(). + * Set the start time of an element. The start time of the element is the + * running time of the element when it last went to the PAUSED state. In READY + * or after a flushing seek, it is set to 0. + * + * Toplevel elements like #GstPipeline will manage the start_time and + * base_time on its children. Setting the start_time to #GST_CLOCK_TIME_NONE + * on such a toplevel element will disable the distribution of the base_time to + * the children and can be useful if the application manages the base_time + * itself, for example if you want to synchronize capture from multiple + * pipelines, and you can also ensure that the pipelines have the same clock. * * MT safe. * @@ -563,8 +572,10 @@ gst_element_set_start_time (GstElement * element, GstClockTime time) * @element: a #GstElement. * * Returns the start time of the element. The start time is the - * running time of the clock when this element was last put to - * PAUSED. + * running time of the clock when this element was last put to PAUSED. + * + * Usually the start_time is managed by a toplevel element such as + * #GstPipeline. * * MT safe. * diff --git a/gst/gstpipeline.c b/gst/gstpipeline.c index 087204889b..af9b17c719 100644 --- a/gst/gstpipeline.c +++ b/gst/gstpipeline.c @@ -71,14 +71,14 @@ * to PLAYING again. The effect is that the running time (as the difference * between the clock time and the base time) will count how much time was spent * in the PLAYING state. This default behaviour can be changed with the - * gst_pipeline_set_new_stream_time() method. + * gst_element_set_start_time() method. * * When sending a flushing seek event to a GstPipeline (see * gst_element_seek()), it will make sure that the pipeline is properly * PAUSED and resumed as well as set the new running time to 0 when the * seek succeeded. * - * Last reviewed on 2009-05-21 (0.10.24) + * Last reviewed on 2009-05-29 (0.10.24) */ #include "gst_private.h" -- cgit v1.2.3