mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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.
This commit is contained in:
parent
81c7f2c4a7
commit
b61aef839f
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-12-08 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2006-12-11 Tim-Philipp Müller <tim at centricular dot net>
|
2006-12-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
|
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
|
||||||
|
|
|
@ -406,8 +406,14 @@ gst_sunaudiosink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
|
||||||
strerror (errno)));
|
strerror (errno)));
|
||||||
return FALSE;
|
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 =
|
sunaudiosink->segtotal = spec->segtotal =
|
||||||
ainfo.play.buffer_size / spec->segsize;
|
ainfo.play.buffer_size / spec->segsize;
|
||||||
|
#else
|
||||||
|
sunaudiosink->segtotal = spec->segtotal;
|
||||||
|
#endif
|
||||||
sunaudiosink->segtotal_samples =
|
sunaudiosink->segtotal_samples =
|
||||||
spec->segtotal * spec->segsize / spec->bytes_per_sample;
|
spec->segtotal * spec->segsize / spec->bytes_per_sample;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue