ext/alsa/gstalsasink.c: basesink calculates silence sample correctly for us.

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
basesink calculates silence sample correctly for us.
This commit is contained in:
Wim Taymans 2006-07-12 10:59:55 +00:00
parent 46d86d8005
commit ebc88d77c4
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,8 @@
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> 2006-07-12 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstringbuffer.c: (build_linear_format), * gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),

View file

@ -657,10 +657,6 @@ gst_alsasink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
alsa->bytes_per_sample = spec->bytes_per_sample; alsa->bytes_per_sample = spec->bytes_per_sample;
spec->segsize = alsa->period_size * spec->bytes_per_sample; spec->segsize = alsa->period_size * spec->bytes_per_sample;
spec->segtotal = alsa->buffer_size / alsa->period_size; 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; return TRUE;