[gst-devel] Several novice questions

David Schleef ds at schleef.org
Mon Jan 21 21:36:24 CET 2008


On Mon, Jan 21, 2008 at 09:47:34AM +0000, Tim Müller wrote:
> On Mon, 2008-01-21 at 00:12 -0700, Jeffrey Barish wrote:
> 
> > I am still wondering why query_position(gst.FORMAT_PERCENT) produces a
> >  query error whereas query_position(gst.FORMAT_TIME) does not and
> >  whether gst.FORMAT_PERCENT is a misnomer.
> 
> Hardly any element supports/implements PERCENT format queries, that's
> why it fails. TIME is the best-supported format. If you want the current
> position in percent you currently need to query the duration and the
> position and then calculate the rest yourself.

We should probably just deprecate GST_FORMAT_PERCENT if it's not
useful.



dave...





More information about the gstreamer-devel mailing list