Hello Wim,<br><br>Thank you very much, seems that it works for me<br><br><div class="gmail_quote">On Tue, Dec 29, 2009 at 2:41 PM, Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tue, 2009-12-29 at 14:00 +0300, Ivan Murashko wrote:<br>
> Hi,<br>
><br>
> I have an GstElement instance and want to know how many time the<br>
> element was in PLAYING state.<br>
<br>
</div>If you mean 'for how long the pipeline has been in the playing state'<br>
then you can use gst_element_get_start_time() on the pipeline, which<br>
gives you the running_time of when the pipeline was last paused. If you<br>
set a pipeline to NULL and then get the start_time, you will get the<br>
total amount of time spent in the playing state.<br>
<br>
Note however that this time resets to 0 after a flushing seek.<br>
<font color="#888888"><br>
Wim<br>
</font><div class="im"><br>
> As I understood gst_element_get_base_time() can help in the case the<br>
> element is in the RUNNING state but is it possible to retrieve such<br>
> info after the main pipeline was stopped (set in NULL state)?<br>
><br>
> --<br>
> Best regards,<br>
> Ivan<br>
</div><div><div></div><div class="h5">> ------------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Verizon Developer Community<br>
> Take advantage of Verizon's best-in-class app development support<br>
> A streamlined, 14 day to market process makes app distribution fast and easy<br>
> Join now and get one step closer to millions of Verizon customers<br>
> <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
> _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Verizon Developer Community<br>
Take advantage of Verizon's best-in-class app development support<br>
A streamlined, 14 day to market process makes app distribution fast and easy<br>
Join now and get one step closer to millions of Verizon customers<br>
<a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Ivan<br>