gst_element_query_position() answered by multiple elements

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_element_query_position() answered by multiple elements

Karthik V-2
I have a case where gst_element_query_position() call to the pipeline is answered by more than one element (in my case, the video and audio sinks). In this case, how does the 
gstreamer framework decide which element to pick? Or does it do some kindof averaging? From the result, it looked like it chose the audio sink's result, but I need to understand the 
logic behind this.

- Karthik

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_query_position() answered by multiple elements

Edward Hervey
Administrator
Hi,

  When querying duration/position on a pipeline (or a bin), the query
will be sent to all sink elements, and the MAXIMUM value will be
returned. (gstreamer/gst/gstbin.c:3156).

   Edward

On Tue, 2009-02-17 at 16:10 -0800, Karthik V wrote:

> I have a case where gst_element_query_position() call to the pipeline
> is answered by more than one element (in my case, the video and audio
> sinks). In this case, how does the
> gstreamer framework decide which element to pick? Or does it do some
> kindof averaging? From the result, it looked like it chose the audio
> sink's result, but I need to understand the
> logic behind this.
>
>
> - Karthik
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel