[gst-devel] getting global pipeline latency

Edward Hervey bilboed at gmail.com
Thu Feb 12 08:02:24 CET 2009


Hi,


  You can get that by querying the latency on the pipeline.

  q = gst_query_new_latency();
  if (gst_element_query (pipeline, q)) {
     gboolean live;
     GstClockTime minlat, maxlat;
     gst_query_parse_latency (q, &live, &minlat, &maxlat);
  }
  gst_query_unref (q);

  More info here:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstQuery.html#gst-query-new-latency


On Wed, 2009-02-11 at 15:23 -0500, Tristan Matthews wrote:
> How can I calculate the total amount of latency for a pipeline with live 
> sources (audio and video)?
> 
> Thanks,
> Tristan
> 





More information about the gstreamer-devel mailing list