How to find out the time a pipeline has been run for?

johnwesting john.blank.westing at gmail.com
Mon Feb 18 13:39:53 PST 2013


Thank you this linked helped me find the answer. The answer in short is use 

GstClock *clk = gst_element_get_clock(GST_ELEMENT(element_derivative));
(unreference after usage)

or

GstClock *clk = GST_ELEMENT_CLOCK(GST_ELEMENT(element_derivative));
(don't unreference after usage)

and then

gst_clock_get_time(clk);

The clock is not available until after the element is in the PAUSED state.
Therefore in base elements that have start() virtual functions you won't be
able to access the clock in the start() method. (At least this is true for
the GstBaseSrc object).



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-find-out-the-time-a-pipeline-has-been-run-for-tp3048423p4658606.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list