Original commit message from CVS:
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
basesink calculates silence sample correctly for us.
2006-07-12 Wim Taymans <wim@fluendo.com>
+ * ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
+ basesink calculates silence sample correctly for us.
+
+2006-07-12 Wim Taymans <wim@fluendo.com>
+
* gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),
(gst_ring_buffer_debug_spec_caps), (gst_ring_buffer_parse_caps):
Calculate correct silence samples so we don't fill our ringbuffer
alsa->bytes_per_sample = spec->bytes_per_sample;
spec->segsize = alsa->period_size * spec->bytes_per_sample;
spec->segtotal = alsa->buffer_size / alsa->period_size;
- spec->silence_sample[0] = 0;
- spec->silence_sample[1] = 0;
- spec->silence_sample[2] = 0;
- spec->silence_sample[3] = 0;
return TRUE;