[gst-devel] Several novice questions
Tim Müller
t.i.m at zen.co.uk
Mon Jan 21 10:47:34 CET 2008
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.
Cheers
-Tim
More information about the gstreamer-devel
mailing list