summaryrefslogtreecommitdiffstats
path: root/sys/oss
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-08 17:11:39 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-08 17:11:39 +0000
commitfe3a5541668c96dff96b7a691494db7b9d7c5f3e (patch)
tree4a1fbd214a8bd26e06e7aa16a7b28a222c24e229 /sys/oss
parent719301715844ef34d3c993fb392d9dfe5ad6489c (diff)
add a warning
Original commit message from CVS: add a warning
Diffstat (limited to 'sys/oss')
-rw-r--r--sys/oss/gstosssink.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c
index 839321f3..9e6a253e 100644
--- a/sys/oss/gstosssink.c
+++ b/sys/oss/gstosssink.c
@@ -296,12 +296,17 @@ gst_osssink_get_time (GstClock *clock, gpointer data)
delay = gst_osssink_get_delay (osssink);
- /* sometimes delay is bigger than the number of bytes sent to the device,
- * which screws up this calculation, we assume that everything is still
- * in the device then */
+ /* sometimes delay is bigger than the number of bytes sent to the device,
+ * which screws up this calculation, we assume that everything is still
+ * in the device then
+ * thomas: with proper handling of the return value, this doesn't seem to
+ * happen anymore, so remove the second code path after april 2004 */
if (delay < 0) {
delay = 0;
- } else if (((guint64) delay) > osssink->handled) {
+ } else if ((guint64) delay > osssink->handled) {
+ g_warning ("Delay %d > osssink->handled %" G_GUINT64_FORMAT
+ ", setting to osssink->handled",
+ delay, osssink->handled);
delay = osssink->handled;
}
res = (osssink->handled - delay) * GST_SECOND / GST_OSSELEMENT (osssink)->bps;