From 63f38155df9cb281e4d48dbc14389e66446436f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 30 Aug 2013 12:35:14 +0200 Subject: Imported Upstream version 1.1.4 --- docs/gst/html/GstElement.html | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'docs/gst/html/GstElement.html') diff --git a/docs/gst/html/GstElement.html b/docs/gst/html/GstElement.html index 7b19023..b7d3c44 100644 --- a/docs/gst/html/GstElement.html +++ b/docs/gst/html/GstElement.html @@ -3737,8 +3737,16 @@ Queries an element to convert src_val in GstFormat format, gint64 *cur);

-Queries an element for the stream position. If one repeatedly calls this -function one can also create and reuse it in gst_element_query(). +Queries an element (usually top-level pipeline or playbin element) for the +stream position in nanoseconds. This will be a value between 0 and the +stream duration (if the stream duration is known). This query will usually +only work once the pipeline is prerolled (i.e. reached PAUSED or PLAYING +state). The application will receive an ASYNC_DONE message on the pipeline +bus when that is the case. +

+

+If one repeatedly calls this function one can also create a query and reuse +it in gst_element_query().

@@ -3774,7 +3782,15 @@ position, or NULL. [GstFormat format, gint64 *duration);

-Queries an element for the total stream duration. +Queries an element (usually top-level pipeline or playbin element) for the +total stream duration in nanoseconds. This query will only work once the +pipeline is prerolled (i.e. reached PAUSED or PLAYING state). The application +will receive an ASYNC_DONE message on the pipeline bus when that is the case. +

+

+If the duration changes for some reason, you will get a DURATION_CHANGED +message on the pipeline bus, in which case you should re-query the duration +using this function.

-- cgit v1.2.3