[gst-devel] Why gst_element_query_duration() always return false

Stefan Kost ensonic at hora-obscura.de
Fri Nov 19 11:29:05 CET 2010


On 19.11.2010 11:23, michael young wrote:
> Hi all:
>     I write a simple player, but I found that it's always return false
> when I call the gst_element_duration(), so I cannot get the 
> right duration of the media file . and anybody know why ?

Maybe you could start providing more info. Is the source code for your
project available somewhere. Are you using playbin2? Are you querying
the duration from the pipeline? if not what element are you querying the
duration from. When do you query (once it is playing?)

Stefan

>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>   





More information about the gstreamer-devel mailing list