[gst-devel] xvideosink.c: history of unused "correction" field?

Martin Janzen janzen at pixelmetrix.com
Mon Mar 10 20:40:24 CET 2003


In sys/xvideo/xvideosink.c, a "correction" field is calculated as an
average of the amount of time required to display an image.  But this
value is then immediately discarded and not used elsewhere:

   if (xvideosink->clock) {
     jitter = gst_clock_get_time (xvideosink->clock) - time;

     xvideosink->correction = (xvideosink->correction + jitter) >> 1;
     xvideosink->correction = 0;  /* FIXME? */
   }

Does anyone remember what this is/was used for?  Maybe for guessing
when to display incoming frames that lack a timestamp...?


-- 
Martin Janzen
janzen at pixel nospam metrix dot com





More information about the gstreamer-devel mailing list