GNOME Bugzilla – Bug 667298
basesink: don't compensate for render-delay twice
Last modified: 2012-01-05 18:09:24 UTC
Created attachment 204616 [details] [review] patch gst_base_sink_adjust_time already subtracts render-delay.
> gst_base_sink_adjust_time already subtracts render-delay. Because it was included in the measured latency, as I understand it: /* subtract the render delay again, which was included in the latency */ if (time > basesink->priv->render_delay) time -= basesink->priv->render_delay; else time = 0; A unit test for this would be nice...
Sure, but in this case it is quite obvious. If you check gst_base_sink_adjust_time, it already subtracts render-delay. (even though the comment says it doesn't...) and then it is subtracted again...
<wtay> the patch is correct commit bea0ed2fc1da66f97b38397188e7ffb3a8619e61 Author: Havard Graff <havard.graff@tandberg.com> Date: Tue Nov 29 14:22:44 2011 +0100 basesink: don't compensate for render-delay twice https://bugzilla.gnome.org/show_bug.cgi?id=667298