summaryrefslogtreecommitdiffstats
path: root/sys/sunaudio
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-12-11 21:21:16 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-12-11 21:21:16 +0000
commitb61aef839f6256889b54144cff790fdfde430cda (patch)
treef7b1e150f61225dd1c27c4df107584a8e1c51f64 /sys/sunaudio
parent81c7f2c4a7794707e9db9bcb5d67633150e06b49 (diff)
sys/sunaudio/gstsunaudiosink.c: Ignore the buffer_time the sound device reports. Turns out it is sometimes completely...
Original commit message from CVS: * sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_prepare): Ignore the buffer_time the sound device reports. Turns out it is sometimes completely bogus and we're better off without it.
Diffstat (limited to 'sys/sunaudio')
-rw-r--r--sys/sunaudio/gstsunaudiosink.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sunaudio/gstsunaudiosink.c b/sys/sunaudio/gstsunaudiosink.c
index 6e52de90..a189905a 100644
--- a/sys/sunaudio/gstsunaudiosink.c
+++ b/sys/sunaudio/gstsunaudiosink.c
@@ -406,8 +406,14 @@ gst_sunaudiosink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
strerror (errno)));
return FALSE;
}
+#if 0
+ /* We don't actually use the buffer_size from the sound device, because
+ * it seems it's just bogus sometimes */
sunaudiosink->segtotal = spec->segtotal =
ainfo.play.buffer_size / spec->segsize;
+#else
+ sunaudiosink->segtotal = spec->segtotal;
+#endif
sunaudiosink->segtotal_samples =
spec->segtotal * spec->segsize / spec->bytes_per_sample;