[gst-cvs] rbultje gst-plugins: gst-plugins/sys/oss/
Ronald Bultje
rbultje at users.sourceforge.net
Tue Dec 16 13:48:11 PST 2003
CVS Root: /cvsroot/gstreamer
Module: gst-plugins
Changes by: rbultje
Date: Tue Dec 16 2003 13:47:52 PST
Log message:
Fix some clocking issue in OSS. The issue is that if we seek forward (note: specifically forward-only), then we call handle_discont() before re-setting the clock to active. However, gstclock.c tells us that handle_discont only succeeds if allow_discont=TRUE, which is set in... set_active(TRUE). So, we first need to re-activate the clock and *then* call handle_discont(). More importantly, though, we should **NEVER EVER EVER EVER EVER** **NEVER EVER EVER EVER EVER** call clock_wait() after a forward discont without first having called handle_discont(). I don't know who added that code, but it's beyond fundamentally broken. clock_wait() **WAITS** until we're at the new given buftime, so if we do that on a forward-seek buffer, we... yes! we wait the amount of time that we seeked forward. Anyway, Apparently this code has been in here for quite a long time so I don't get how this can ever have worked...
Modified files:
sys/oss : gstosssink.c
Links:
http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/sys/oss/gstosssink.c.diff?r1=1.68&r2=1.69
More information about the Gstreamer-commits
mailing list